#20387F#20387F

#20387F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.6% C 0.124 H 266.2°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#20387F
RGBrgb(32, 56, 127)
HSLhsl(225, 60%, 31%)
HSVhsv(225, 75%, 50%)
CMYKcmyk(74.8%, 55.9%, 0%, 50.2%)
CIE-LABlab(25.76, 17.27, -42.93)
CIE-LCHlch(25.76, 46.28, 291.92°)
OKLaboklab(36.63% -0.0081 -0.1236)
OKLCHoklch(36.63% 0.124 266.2)
XYZxyz(5.8393, 4.6671, 20.6677)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20387F #7F6720
analogous
#20677F #20387F #37207F
triadic
#20387F #7F2038 #387F20
tetradic
#20387F #7F2067 #7F6720 #207F37
square
#20387F #7F2067 #7F6720 #207F37
split-complementary
#20387F #7F3720 #677F20
monochromatic
#070D1D #14224E #20387F #2C4EB0 #486BD1

Accessibility & contrast

On white

10.86
#20387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20387F
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20387F#FFFFFF#000000##FFFFFF
##20387F1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20387f;
/* rgb */ color: rgb(32, 56, 127);
/* oklch */ color: oklch(36.6% 0.124 266.2);
Tailwind
colors: {
  custom: {
    50: '#696ea5',
    500: '#20387f',
    950: '#000000',
  },
}
SCSS
$custom: #20387f;
$custom-light: #696ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#20387f",
  "rgb": {
    "r": 32,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 224.842,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36634,
    "c": 0.12388,
    "h": 266.2
  },
  "luminance": 0.04668
}

Semantic roles & 50–950 ramp

primary
#20387F
secondary
#B29749
accent
#BB45E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #20387F

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

Preview Lab → · Contrast checker → · Palette generator →

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