#20418E#20418E

#20418E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.8% C 0.134 H 263.9°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#20418E
RGBrgb(32, 65, 142)
HSLhsl(222, 63%, 34%)
HSVhsv(222, 77%, 56%)
CMYKcmyk(77.5%, 54.2%, 0%, 44.3%)
CIE-LABlab(29.51, 17.01, -46.19)
CIE-LCHlch(29.51, 49.22, 290.21°)
OKLaboklab(39.84% -0.0143 -0.133)
OKLCHoklch(39.84% 0.134 263.9)
XYZxyz(7.3667, 6.0398, 26.3635)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20418E #8E6D20
analogous
#20788E #20418E #36208E
triadic
#20418E #8E2041 #418E20
tetradic
#20418E #8E2078 #8E6D20 #208E36
square
#20418E #8E2078 #8E6D20 #208E36
split-complementary
#20418E #8E3620 #788E20
monochromatic
#09132A #152A5C #20418E #2B58C0 #5179D8

Accessibility & contrast

On white

9.51
#20418E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#20418E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20418E
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20418E#FFFFFF#000000##FFFFFF
##20418E1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084B91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #20418e;
/* rgb */ color: rgb(32, 65, 142);
/* oklch */ color: oklch(39.8% 0.134 263.9);
Tailwind
colors: {
  custom: {
    50: '#6d75b0',
    500: '#20418e',
    950: '#000000',
  },
}
SCSS
$custom: #20418e;
$custom-light: #6d75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20418e",
  "rgb": {
    "r": 32,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 222,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39835,
    "c": 0.13378,
    "h": 263.9
  },
  "luminance": 0.06041
}

Semantic roles & 50–950 ramp

primary
#20418E
secondary
#BB9B4F
accent
#B542E6
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #20418E

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

Preview Lab → · Contrast checker → · Palette generator →

#20418E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva