#20418D#20418D

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

Color values

HEX#20418D
RGBrgb(32, 65, 141)
HSLhsl(222, 63%, 34%)
HSVhsv(222, 77%, 55%)
CMYKcmyk(77.3%, 53.9%, 0%, 44.7%)
CIE-LABlab(29.44, 16.61, -45.69)
CIE-LCHlch(29.44, 48.62, 289.97°)
OKLaboklab(39.75% -0.0144 -0.1316)
OKLCHoklch(39.75% 0.132 263.8)
XYZxyz(7.2920, 6.0099, 25.9699)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20418D #8D6C20
analogous
#20788D #20418D #36208D
triadic
#20418D #8D2041 #418D20
tetradic
#20418D #8D2078 #8D6C20 #208D36
square
#20418D #8D2078 #8D6C20 #208D36
split-complementary
#20418D #8D3620 #788D20
monochromatic
#091329 #152A5B #20418D #2B58BF #5079D7

Accessibility & contrast

On white

9.54
#20418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#20418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20418D
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20418D#FFFFFF#000000##FFFFFF
##20418D1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4B90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #20418d;
/* rgb */ color: rgb(32, 65, 141);
/* oklch */ color: oklch(39.8% 0.132 263.8);
Tailwind
colors: {
  custom: {
    50: '#6c75af',
    500: '#20418d',
    950: '#000000',
  },
}
SCSS
$custom: #20418d;
$custom-light: #6c75af;
$custom-dark: #000000;
JSON
{
  "hex": "#20418d",
  "rgb": {
    "r": 32,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 221.835,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39754,
    "c": 0.13235,
    "h": 263.8
  },
  "luminance": 0.06011
}

Semantic roles & 50–950 ramp

primary
#20418D
secondary
#BA9A4E
accent
#B442E6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #20418D

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

Preview Lab → · Contrast checker → · Palette generator →

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