#20418C#20418C

#20418C is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.7% C 0.131 H 263.6°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#20418C
RGBrgb(32, 65, 140)
HSLhsl(222, 63%, 34%)
HSVhsv(222, 77%, 55%)
CMYKcmyk(77.1%, 53.6%, 0%, 45.1%)
CIE-LABlab(29.36, 16.21, -45.20)
CIE-LCHlch(29.36, 48.01, 289.73°)
OKLaboklab(39.67% -0.0145 -0.1301)
OKLCHoklch(39.67% 0.131 263.6)
XYZxyz(7.2179, 5.9803, 25.5798)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20418C #8C6B20
analogous
#20778C #20418C #35208C
triadic
#20418C #8C2041 #418C20
tetradic
#20418C #8C2077 #8C6B20 #208C35
square
#20418C #8C2077 #8C6B20 #208C35
split-complementary
#20418C #8C3520 #778C20
monochromatic
#091328 #152A5A #20418C #2B58BE #5079D7

Accessibility & contrast

On white

9.56
#20418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20418C
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20418C#FFFFFF#000000##FFFFFF
##20418C1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20418c;
/* rgb */ color: rgb(32, 65, 140);
/* oklch */ color: oklch(39.7% 0.131 263.6);
Tailwind
colors: {
  custom: {
    50: '#6c75ae',
    500: '#20418c',
    950: '#000000',
  },
}
SCSS
$custom: #20418c;
$custom-light: #6c75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20418c",
  "rgb": {
    "r": 32,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 221.667,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39674,
    "c": 0.13091,
    "h": 263.6
  },
  "luminance": 0.05981
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20418C

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

Preview Lab → · Contrast checker → · Palette generator →

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