#20387D#20387D

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

Color values

HEX#20387D
RGBrgb(32, 56, 125)
HSLhsl(225, 59%, 31%)
HSVhsv(225, 74%, 49%)
CMYKcmyk(74.4%, 55.2%, 0%, 51%)
CIE-LABlab(25.61, 16.47, -41.93)
CIE-LCHlch(25.61, 45.05, 291.45°)
OKLaboklab(36.47% -0.0083 -0.1206)
OKLCHoklch(36.47% 0.121 266.1)
XYZxyz(5.7102, 4.6155, 19.9880)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20387D #7D6520
analogous
#20667D #20387D #36207D
triadic
#20387D #7D2038 #387D20
tetradic
#20387D #7D2066 #7D6520 #207D36
square
#20387D #7D2066 #7D6520 #207D36
split-complementary
#20387D #7D3620 #667D20
monochromatic
#070C1C #14224C #20387D #2C4EAE #476BD0

Accessibility & contrast

On white

10.92
#20387D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#20387D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20387D
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20387D#FFFFFF#000000##FFFFFF
##20387D1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06417F
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #20387d;
/* rgb */ color: rgb(32, 56, 125);
/* oklch */ color: oklch(36.5% 0.121 266.1);
Tailwind
colors: {
  custom: {
    50: '#696ea3',
    500: '#20387d',
    950: '#000000',
  },
}
SCSS
$custom: #20387d;
$custom-light: #696ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#20387d",
  "rgb": {
    "r": 32,
    "g": 56,
    "b": 125
  },
  "hsl": {
    "h": 224.516,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36468,
    "c": 0.12093,
    "h": 266.1
  },
  "luminance": 0.04616
}

Semantic roles & 50–950 ramp

primary
#20387D
secondary
#B09549
accent
#BA45E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #20387D

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

Preview Lab → · Contrast checker → · Palette generator →

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