#20417C#20417C

#20417C is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.108 H 261.0°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#20417C
RGBrgb(32, 65, 124)
HSLhsl(218, 59%, 31%)
HSVhsv(218, 74%, 49%)
CMYKcmyk(74.2%, 47.6%, 0%, 51.4%)
CIE-LABlab(28.23, 9.80, -37.08)
CIE-LCHlch(28.23, 38.35, 284.81°)
OKLaboklab(38.44% -0.0168 -0.1062)
OKLCHoklch(38.44% 0.108 261)
XYZxyz(6.1227, 5.5423, 19.8120)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20417C #7C5B20
analogous
#206F7C #20417C #2D207C
triadic
#20417C #7C2041 #417C20
tetradic
#20417C #7C206F #7C5B20 #207C2D
square
#20417C #7C206F #7C5B20 #207C2D
split-complementary
#20417C #7C2D20 #6F7C20
monochromatic
#070E1B #13274B #20417C #2D5BAD #4778CF

Accessibility & contrast

On white

9.96
#20417C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#20417C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20417C
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20417C#FFFFFF#000000##FFFFFF
##20417C1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477E
Deuteranopia (green-blind)
#0F3F7B
Tritanopia (blue-blind)
#004F58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #20417c;
/* rgb */ color: rgb(32, 65, 124);
/* oklch */ color: oklch(38.4% 0.108 261.0);
Tailwind
colors: {
  custom: {
    50: '#6875a2',
    500: '#20417c',
    950: '#000000',
  },
}
SCSS
$custom: #20417c;
$custom-light: #6875a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20417c",
  "rgb": {
    "r": 32,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 218.478,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38442,
    "c": 0.10755,
    "h": 261
  },
  "luminance": 0.05543
}

Semantic roles & 50–950 ramp

primary
#20417C
secondary
#AF8A49
accent
#AA46E2
background
#F6F7FA
surface
#EBEDF3
border
#C6C8CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #20417C

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

Preview Lab → · Contrast checker → · Palette generator →

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