#20417F#20417F

#20417F is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.7% C 0.112 H 261.6°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#20417F
RGBrgb(32, 65, 127)
HSLhsl(219, 60%, 31%)
HSVhsv(219, 75%, 50%)
CMYKcmyk(74.8%, 48.8%, 0%, 50.2%)
CIE-LABlab(28.43, 11.00, -38.63)
CIE-LCHlch(28.43, 40.17, 285.90°)
OKLaboklab(38.66% -0.0163 -0.1108)
OKLCHoklch(38.66% 0.112 261.6)
XYZxyz(6.3154, 5.6193, 20.8264)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20417F #7F5E20
analogous
#20707F #20417F #2E207F
triadic
#20417F #7F2041 #417F20
tetradic
#20417F #7F2070 #7F5E20 #207F2E
square
#20417F #7F2070 #7F5E20 #207F2E
split-complementary
#20417F #7F2E20 #707F20
monochromatic
#070F1D #14284E #20417F #2C5AB0 #4878D1

Accessibility & contrast

On white

9.89
#20417F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#20417F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20417F
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20417F#FFFFFF#000000##FFFFFF
##20417F1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204881
Deuteranopia (green-blind)
#083F7E
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #20417f;
/* rgb */ color: rgb(32, 65, 127);
/* oklch */ color: oklch(38.7% 0.112 261.6);
Tailwind
colors: {
  custom: {
    50: '#6975a4',
    500: '#20417f',
    950: '#000000',
  },
}
SCSS
$custom: #20417f;
$custom-light: #6975a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20417f",
  "rgb": {
    "r": 32,
    "g": 65,
    "b": 127
  },
  "hsl": {
    "h": 219.158,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38664,
    "c": 0.11197,
    "h": 261.6
  },
  "luminance": 0.0562
}

Semantic roles & 50–950 ramp

primary
#20417F
secondary
#B28D49
accent
#AC45E3
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #20417F

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

Preview Lab → · Contrast checker → · Palette generator →

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