#20408D#20408D

#20408D is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.134 H 264.2°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#20408D
RGBrgb(32, 64, 141)
HSLhsl(222, 63%, 34%)
HSVhsv(222, 77%, 55%)
CMYKcmyk(77.3%, 54.6%, 0%, 44.7%)
CIE-LABlab(29.15, 17.30, -46.16)
CIE-LCHlch(29.15, 49.29, 290.54°)
OKLaboklab(39.53% -0.0136 -0.133)
OKLCHoklch(39.53% 0.134 264.2)
XYZxyz(7.2351, 5.8961, 25.9509)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20408D #8D6D20
analogous
#20778D #20408D #36208D
triadic
#20408D #8D2040 #408D20
tetradic
#20408D #8D2077 #8D6D20 #208D36
square
#20408D #8D2077 #8D6D20 #208D36
split-complementary
#20408D #8D3620 #778D20
monochromatic
#091329 #15295B #20408D #2B57BF #5078D7

Accessibility & contrast

On white

9.64
#20408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#20408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20408D
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20408D#FFFFFF#000000##FFFFFF
##20408D1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054A90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #20408d;
/* rgb */ color: rgb(32, 64, 141);
/* oklch */ color: oklch(39.5% 0.134 264.2);
Tailwind
colors: {
  custom: {
    50: '#6c74af',
    500: '#20408d',
    950: '#000000',
  },
}
SCSS
$custom: #20408d;
$custom-light: #6c74af;
$custom-dark: #000000;
JSON
{
  "hex": "#20408d",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 222.385,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39535,
    "c": 0.13364,
    "h": 264.2
  },
  "luminance": 0.05897
}

Semantic roles & 50–950 ramp

primary
#20408D
secondary
#BA9B4E
accent
#B642E6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #20408D

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

Preview Lab → · Contrast checker → · Palette generator →

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