#20408F#20408F

#20408F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.7% C 0.137 H 264.4°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#20408F
RGBrgb(32, 64, 143)
HSLhsl(223, 63%, 34%)
HSVhsv(223, 78%, 56%)
CMYKcmyk(77.6%, 55.2%, 0%, 43.9%)
CIE-LABlab(29.30, 18.09, -47.14)
CIE-LCHlch(29.30, 50.50, 291.00°)
OKLaboklab(39.7% -0.0134 -0.1358)
OKLCHoklch(39.7% 0.137 264.4)
XYZxyz(7.3852, 5.9562, 26.7417)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20408F #8F6F20
analogous
#20788F #20408F #38208F
triadic
#20408F #8F2040 #408F20
tetradic
#20408F #8F2078 #8F6F20 #208F38
square
#20408F #8F2078 #8F6F20 #208F38
split-complementary
#20408F #8F3820 #788F20
monochromatic
#0A132B #152A5D #20408F #2B56C1 #5178D8

Accessibility & contrast

On white

9.58
#20408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#20408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20408F
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20408F#FFFFFF#000000##FFFFFF
##20408F1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #20408f;
/* rgb */ color: rgb(32, 64, 143);
/* oklch */ color: oklch(39.7% 0.137 264.4);
Tailwind
colors: {
  custom: {
    50: '#6d74b0',
    500: '#20408f',
    950: '#000000',
  },
}
SCSS
$custom: #20408f;
$custom-light: #6d74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20408f",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 222.703,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39699,
    "c": 0.13651,
    "h": 264.4
  },
  "luminance": 0.05957
}

Semantic roles & 50–950 ramp

primary
#20408F
secondary
#BB9C4F
accent
#B741E6
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #20408F

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

Preview Lab → · Contrast checker → · Palette generator →

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