#20418F#20418F

#20418F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 39.9% C 0.135 H 264.0°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#20418F
RGBrgb(32, 65, 143)
HSLhsl(222, 63%, 34%)
HSVhsv(222, 78%, 56%)
CMYKcmyk(77.6%, 54.5%, 0%, 43.9%)
CIE-LABlab(29.59, 17.40, -46.68)
CIE-LCHlch(29.59, 49.82, 290.45°)
OKLaboklab(39.92% -0.0142 -0.1345)
OKLCHoklch(39.92% 0.135 264)
XYZxyz(7.4421, 6.0700, 26.7607)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20418F #8F6E20
analogous
#20798F #20418F #36208F
triadic
#20418F #8F2041 #418F20
tetradic
#20418F #8F2079 #8F6E20 #208F36
square
#20418F #8F2079 #8F6E20 #208F36
split-complementary
#20418F #8F3620 #798F20
monochromatic
#0A142B #152A5D #20418F #2B58C1 #5179D8

Accessibility & contrast

On white

9.48
#20418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20418F
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20418F#FFFFFF#000000##FFFFFF
##20418F1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054B92
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #20418f;
/* rgb */ color: rgb(32, 65, 143);
/* oklch */ color: oklch(39.9% 0.135 264.0);
Tailwind
colors: {
  custom: {
    50: '#6d75b0',
    500: '#20418f',
    950: '#000000',
  },
}
SCSS
$custom: #20418f;
$custom-light: #6d75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20418f",
  "rgb": {
    "r": 32,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 222.162,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39916,
    "c": 0.13521,
    "h": 264
  },
  "luminance": 0.06071
}

Semantic roles & 50–950 ramp

primary
#20418F
secondary
#BB9B4F
accent
#B541E6
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #20418F

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

Preview Lab → · Contrast checker → · Palette generator →

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