#20408C#20408C

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

Color values

HEX#20408C
RGBrgb(32, 64, 140)
HSLhsl(222, 63%, 34%)
HSVhsv(222, 77%, 55%)
CMYKcmyk(77.1%, 54.3%, 0%, 45.1%)
CIE-LABlab(29.07, 16.90, -45.66)
CIE-LCHlch(29.07, 48.69, 290.31°)
OKLaboklab(39.45% -0.0137 -0.1315)
OKLCHoklch(39.45% 0.132 264.1)
XYZxyz(7.1610, 5.8665, 25.5608)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20408C #8C6C20
analogous
#20768C #20408C #36208C
triadic
#20408C #8C2040 #408C20
tetradic
#20408C #8C2076 #8C6C20 #208C36
square
#20408C #8C2076 #8C6C20 #208C36
split-complementary
#20408C #8C3620 #768C20
monochromatic
#091228 #15295A #20408C #2B57BE #5078D7

Accessibility & contrast

On white

9.66
#20408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20408C
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20408C#FFFFFF#000000##FFFFFF
##20408C1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084A8F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #20408c;
/* rgb */ color: rgb(32, 64, 140);
/* oklch */ color: oklch(39.5% 0.132 264.1);
Tailwind
colors: {
  custom: {
    50: '#6c74ae',
    500: '#20408c',
    950: '#000000',
  },
}
SCSS
$custom: #20408c;
$custom-light: #6c74ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20408c",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 222.222,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39454,
    "c": 0.13221,
    "h": 264.1
  },
  "luminance": 0.05867
}

Semantic roles & 50–950 ramp

primary
#20408C
secondary
#BA9A4E
accent
#B542E6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #20408C

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

Preview Lab → · Contrast checker → · Palette generator →

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