#20407B#20407B

#20407B is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.1% C 0.107 H 261.4°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#20407B
RGBrgb(32, 64, 123)
HSLhsl(219, 59%, 30%)
HSVhsv(219, 74%, 48%)
CMYKcmyk(74%, 48%, 0%, 51.8%)
CIE-LABlab(27.85, 10.09, -37.05)
CIE-LCHlch(27.85, 38.40, 285.24°)
OKLaboklab(38.13% -0.016 -0.1061)
OKLCHoklch(38.13% 0.107 261.4)
XYZxyz(6.0029, 5.4033, 19.4616)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20407B #7B5B20
analogous
#206D7B #20407B #2D207B
triadic
#20407B #7B2040 #407B20
tetradic
#20407B #7B206D #7B5B20 #207B2D
square
#20407B #7B206D #7B5B20 #207B2D
split-complementary
#20407B #7B2D20 #6D7B20
monochromatic
#070D1A #13274A #20407B #2D59AC #4676CF

Accessibility & contrast

On white

10.09
#20407B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#20407B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20407B
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20407B#FFFFFF#000000##FFFFFF
##20407B1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467D
Deuteranopia (green-blind)
#0E3E7A
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #20407b;
/* rgb */ color: rgb(32, 64, 123);
/* oklch */ color: oklch(38.1% 0.107 261.4);
Tailwind
colors: {
  custom: {
    50: '#6874a1',
    500: '#20407b',
    950: '#000000',
  },
}
SCSS
$custom: #20407b;
$custom-light: #6874a1;
$custom-dark: #000000;
JSON
{
  "hex": "#20407b",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 218.901,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38134,
    "c": 0.10736,
    "h": 261.4
  },
  "luminance": 0.05404
}

Semantic roles & 50–950 ramp

primary
#20407B
secondary
#AE8A49
accent
#AB46E2
background
#F6F7FA
surface
#EBEDF3
border
#C6C8CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #20407B

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

Preview Lab → · Contrast checker → · Palette generator →

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