#272F81#272F81

#272F81 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.137 H 272.9°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#272F81
RGBrgb(39, 47, 129)
HSLhsl(235, 54%, 33%)
HSVhsv(235, 70%, 51%)
CMYKcmyk(69.8%, 63.6%, 0%, 49.4%)
CIE-LABlab(23.83, 25.32, -47.32)
CIE-LCHlch(23.83, 53.66, 298.15°)
OKLaboklab(35.35% 0.007 -0.1364)
OKLCHoklch(35.35% 0.137 272.9)
XYZxyz(5.8143, 4.0488, 21.2397)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272F81 #817927
analogous
#275C81 #272F81 #4C2781
triadic
#272F81 #81272F #2F8127
tetradic
#272F81 #81275C #817927 #27814C
square
#272F81 #81275C #817927 #27814C
split-complementary
#272F81 #814C27 #5C8127
monochromatic
#0B0D23 #191E52 #272F81 #3540B0 #5661CC

Accessibility & contrast

On white

11.60
#272F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#272F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272F81
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272F81#FFFFFF#000000##FFFFFF
##272F811.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #272f81;
/* rgb */ color: rgb(39, 47, 129);
/* oklch */ color: oklch(35.3% 0.137 272.9);
Tailwind
colors: {
  custom: {
    50: '#6e67a6',
    500: '#272f81',
    950: '#000000',
  },
}
SCSS
$custom: #272f81;
$custom-light: #6e67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#272f81",
  "rgb": {
    "r": 39,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 234.667,
    "s": 53.571,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35348,
    "c": 0.13662,
    "h": 272.9
  },
  "luminance": 0.04049
}

Semantic roles & 50–950 ramp

primary
#272F81
secondary
#B1A853
accent
#D04BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #272F81

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#272F81 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva