#20287D#20287D

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

Color values

HEX#20287D
RGBrgb(32, 40, 125)
HSLhsl(235, 59%, 31%)
HSVhsv(235, 74%, 49%)
CMYKcmyk(74.4%, 68%, 0%, 51%)
CIE-LABlab(21.23, 27.58, -49.07)
CIE-LCHlch(21.23, 56.29, 299.34°)
OKLaboklab(33.21% 0.0045 -0.1418)
OKLCHoklch(33.21% 0.142 271.8)
XYZxyz(5.0549, 3.3048, 19.7696)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20287D #7D7520
analogous
#20567D #20287D #46207D
triadic
#20287D #7D2028 #287D20
tetradic
#20287D #7D2056 #7D7520 #207D46
square
#20287D #7D2056 #7D7520 #207D46
split-complementary
#20287D #7D4620 #567D20
monochromatic
#07091C #14184C #20287D #2C38AE #4753D0

Accessibility & contrast

On white

12.64
#20287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#20287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20287D
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20287D#FFFFFF#000000##FFFFFF
##20287D1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #20287d;
/* rgb */ color: rgb(32, 40, 125);
/* oklch */ color: oklch(33.2% 0.142 271.8);
Tailwind
colors: {
  custom: {
    50: '#6a62a3',
    500: '#20287d',
    950: '#000000',
  },
}
SCSS
$custom: #20287d;
$custom-light: #6a62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20287d",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 234.839,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33207,
    "c": 0.14189,
    "h": 271.8
  },
  "luminance": 0.03305
}

Semantic roles & 50–950 ramp

primary
#20287D
secondary
#B0A749
accent
#D545E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #20287D

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

Preview Lab → · Contrast checker → · Palette generator →

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