#20287F#20287F

#20287F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.145 H 271.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#20287F
RGBrgb(32, 40, 127)
HSLhsl(235, 60%, 31%)
HSVhsv(235, 75%, 50%)
CMYKcmyk(74.8%, 68.5%, 0%, 50.2%)
CIE-LABlab(21.42, 28.33, -50.02)
CIE-LCHlch(21.42, 57.49, 299.53°)
OKLaboklab(33.41% 0.0043 -0.1446)
OKLCHoklch(33.41% 0.145 271.7)
XYZxyz(5.1839, 3.3564, 20.4492)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20287F #7F7720
analogous
#20577F #20287F #47207F
triadic
#20287F #7F2028 #287F20
tetradic
#20287F #7F2057 #7F7720 #207F47
square
#20287F #7F2057 #7F7720 #207F47
split-complementary
#20287F #7F4720 #577F20
monochromatic
#07091D #14194E #20287F #2C37B0 #4854D1

Accessibility & contrast

On white

12.56
#20287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20287F
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20287F#FFFFFF#000000##FFFFFF
##20287F1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #20287f;
/* rgb */ color: rgb(32, 40, 127);
/* oklch */ color: oklch(33.4% 0.145 271.7);
Tailwind
colors: {
  custom: {
    50: '#6b62a5',
    500: '#20287f',
    950: '#000000',
  },
}
SCSS
$custom: #20287f;
$custom-light: #6b62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20287f",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 234.947,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33406,
    "c": 0.14466,
    "h": 271.7
  },
  "luminance": 0.03357
}

Semantic roles & 50–950 ramp

primary
#20287F
secondary
#B2A949
accent
#D645E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #20287F

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

Preview Lab → · Contrast checker → · Palette generator →

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