#20408B#20408B

#20408B is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.131 H 264.0°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#20408B
RGBrgb(32, 64, 139)
HSLhsl(222, 63%, 34%)
HSVhsv(222, 77%, 55%)
CMYKcmyk(77%, 54%, 0%, 45.5%)
CIE-LABlab(29.00, 16.50, -45.17)
CIE-LCHlch(29.00, 48.09, 290.06°)
OKLaboklab(39.37% -0.0138 -0.13)
OKLCHoklch(39.37% 0.131 264)
XYZxyz(7.0876, 5.8372, 25.1742)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20408B #8B6B20
analogous
#20758B #20408B #35208B
triadic
#20408B #8B2040 #408B20
tetradic
#20408B #8B2075 #8B6B20 #208B35
square
#20408B #8B2075 #8B6B20 #208B35
split-complementary
#20408B #8B3520 #758B20
monochromatic
#091228 #152959 #20408B #2B57BD #4F77D6

Accessibility & contrast

On white

9.69
#20408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#20408B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20408B
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20408B#FFFFFF#000000##FFFFFF
##20408B1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4A8E
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #20408b;
/* rgb */ color: rgb(32, 64, 139);
/* oklch */ color: oklch(39.4% 0.131 264.0);
Tailwind
colors: {
  custom: {
    50: '#6c74ad',
    500: '#20408b',
    950: '#000000',
  },
}
SCSS
$custom: #20408b;
$custom-light: #6c74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20408b",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 222.056,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39373,
    "c": 0.13077,
    "h": 264
  },
  "luminance": 0.05838
}

Semantic roles & 50–950 ramp

primary
#20408B
secondary
#BA994D
accent
#B542E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #20408B

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

Preview Lab → · Contrast checker → · Palette generator →

#20408B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva