#20287E#20287E

#20287E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.143 H 271.8°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#20287E
RGBrgb(32, 40, 126)
HSLhsl(235, 59%, 31%)
HSVhsv(235, 75%, 49%)
CMYKcmyk(74.6%, 68.3%, 0%, 50.6%)
CIE-LABlab(21.32, 27.95, -49.55)
CIE-LCHlch(21.32, 56.89, 299.43°)
OKLaboklab(33.31% 0.0044 -0.1432)
OKLCHoklch(33.31% 0.143 271.8)
XYZxyz(5.1191, 3.3305, 20.1077)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20287E #7E7620
analogous
#20577E #20287E #47207E
triadic
#20287E #7E2028 #287E20
tetradic
#20287E #7E2057 #7E7620 #207E47
square
#20287E #7E2057 #7E7620 #207E47
split-complementary
#20287E #7E4720 #577E20
monochromatic
#07091C #14194D #20287E #2C37AF #4854D0

Accessibility & contrast

On white

12.60
#20287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#20287E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20287E
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20287E#FFFFFF#000000##FFFFFF
##20287E1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #20287e;
/* rgb */ color: rgb(32, 40, 126);
/* oklch */ color: oklch(33.3% 0.143 271.8);
Tailwind
colors: {
  custom: {
    50: '#6b62a4',
    500: '#20287e',
    950: '#000000',
  },
}
SCSS
$custom: #20287e;
$custom-light: #6b62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20287e",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 234.894,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33306,
    "c": 0.14328,
    "h": 271.8
  },
  "luminance": 0.03331
}

Semantic roles & 50–950 ramp

primary
#20287E
secondary
#B1A849
accent
#D545E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #20287E

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

Preview Lab → · Contrast checker → · Palette generator →

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