#20287B#20287B

#20287B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.139 H 271.9°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#20287B
RGBrgb(32, 40, 123)
HSLhsl(235, 59%, 30%)
HSVhsv(235, 74%, 48%)
CMYKcmyk(74%, 67.5%, 0%, 51.8%)
CIE-LABlab(21.03, 26.82, -48.11)
CIE-LCHlch(21.03, 55.08, 299.13°)
OKLaboklab(33.01% 0.0046 -0.139)
OKLCHoklch(33.01% 0.139 271.9)
XYZxyz(4.9284, 3.2542, 19.1034)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20287B #7B7320
analogous
#20567B #20287B #45207B
triadic
#20287B #7B2028 #287B20
tetradic
#20287B #7B2056 #7B7320 #207B45
square
#20287B #7B2056 #7B7320 #207B45
split-complementary
#20287B #7B4520 #567B20
monochromatic
#07081A #13184A #20287B #2D38AC #4652CF

Accessibility & contrast

On white

12.72
#20287B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#20287B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20287B
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20287B#FFFFFF#000000##FFFFFF
##20287B1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #20287b;
/* rgb */ color: rgb(32, 40, 123);
/* oklch */ color: oklch(33.0% 0.139 271.9);
Tailwind
colors: {
  custom: {
    50: '#6a62a2',
    500: '#20287b',
    950: '#000000',
  },
}
SCSS
$custom: #20287b;
$custom-light: #6a62a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20287b",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 234.725,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33009,
    "c": 0.1391,
    "h": 271.9
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#20287B
secondary
#AEA549
accent
#D446E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #20287B

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

Preview Lab → · Contrast checker → · Palette generator →

#20287B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva