#20387E#20387E

#20387E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.6% C 0.122 H 266.1°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#20387E
RGBrgb(32, 56, 126)
HSLhsl(225, 59%, 31%)
HSVhsv(225, 75%, 49%)
CMYKcmyk(74.6%, 55.6%, 0%, 50.6%)
CIE-LABlab(25.69, 16.87, -42.43)
CIE-LCHlch(25.69, 45.66, 291.69°)
OKLaboklab(36.55% -0.0082 -0.1221)
OKLCHoklch(36.55% 0.122 266.1)
XYZxyz(5.7744, 4.6412, 20.3261)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20387E #7E6620
analogous
#20677E #20387E #37207E
triadic
#20387E #7E2038 #387E20
tetradic
#20387E #7E2067 #7E6620 #207E37
square
#20387E #7E2067 #7E6620 #207E37
split-complementary
#20387E #7E3720 #677E20
monochromatic
#070D1C #14224D #20387E #2C4EAF #486BD0

Accessibility & contrast

On white

10.89
#20387E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#20387E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20387E
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20387E#FFFFFF#000000##FFFFFF
##20387E1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044180
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #20387e;
/* rgb */ color: rgb(32, 56, 126);
/* oklch */ color: oklch(36.6% 0.122 266.1);
Tailwind
colors: {
  custom: {
    50: '#696ea4',
    500: '#20387e',
    950: '#000000',
  },
}
SCSS
$custom: #20387e;
$custom-light: #696ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#20387e",
  "rgb": {
    "r": 32,
    "g": 56,
    "b": 126
  },
  "hsl": {
    "h": 224.681,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36551,
    "c": 0.12241,
    "h": 266.1
  },
  "luminance": 0.04642
}

Semantic roles & 50–950 ramp

primary
#20387E
secondary
#B19649
accent
#BA45E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #20387E

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

Preview Lab → · Contrast checker → · Palette generator →

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