#20417D#20417D

#20417D is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.5% C 0.109 H 261.2°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#20417D
RGBrgb(32, 65, 125)
HSLhsl(219, 59%, 31%)
HSVhsv(219, 74%, 49%)
CMYKcmyk(74.4%, 48%, 0%, 51%)
CIE-LABlab(28.29, 10.20, -37.60)
CIE-LCHlch(28.29, 38.96, 285.18°)
OKLaboklab(38.52% -0.0167 -0.1077)
OKLCHoklch(38.52% 0.109 261.2)
XYZxyz(6.1863, 5.5677, 20.1467)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20417D #7D5C20
analogous
#206F7D #20417D #2D207D
triadic
#20417D #7D2041 #417D20
tetradic
#20417D #7D206F #7D5C20 #207D2D
square
#20417D #7D206F #7D5C20 #207D2D
split-complementary
#20417D #7D2D20 #6F7D20
monochromatic
#070E1C #14284C #20417D #2C5AAE #4778D0

Accessibility & contrast

On white

9.94
#20417D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20417D
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20417D#FFFFFF#000000##FFFFFF
##20417D1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477F
Deuteranopia (green-blind)
#0D3F7C
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #20417d;
/* rgb */ color: rgb(32, 65, 125);
/* oklch */ color: oklch(38.5% 0.109 261.2);
Tailwind
colors: {
  custom: {
    50: '#6975a3',
    500: '#20417d',
    950: '#000000',
  },
}
SCSS
$custom: #20417d;
$custom-light: #6975a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20417d",
  "rgb": {
    "r": 32,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 218.71,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38516,
    "c": 0.10902,
    "h": 261.2
  },
  "luminance": 0.05568
}

Semantic roles & 50–950 ramp

primary
#20417D
secondary
#B08B49
accent
#AB45E2
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #20417D

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

Preview Lab → · Contrast checker → · Palette generator →

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