#20418B#20418B

#20418B is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.6% C 0.129 H 263.5°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#20418B
RGBrgb(32, 65, 139)
HSLhsl(221, 63%, 34%)
HSVhsv(221, 77%, 55%)
CMYKcmyk(77%, 53.2%, 0%, 45.5%)
CIE-LABlab(29.29, 15.81, -44.70)
CIE-LCHlch(29.29, 47.41, 289.47°)
OKLaboklab(39.59% -0.0146 -0.1286)
OKLCHoklch(39.59% 0.129 263.5)
XYZxyz(7.1445, 5.9510, 25.1932)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20418B #8B6A20
analogous
#20768B #20418B #34208B
triadic
#20418B #8B2041 #418B20
tetradic
#20418B #8B2076 #8B6A20 #208B34
square
#20418B #8B2076 #8B6A20 #208B34
split-complementary
#20418B #8B3420 #768B20
monochromatic
#091228 #152A59 #20418B #2B58BD #4F79D6

Accessibility & contrast

On white

9.59
#20418B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#20418B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20418B
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20418B#FFFFFF#000000##FFFFFF
##20418B1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4A8E
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #20418b;
/* rgb */ color: rgb(32, 65, 139);
/* oklch */ color: oklch(39.6% 0.129 263.5);
Tailwind
colors: {
  custom: {
    50: '#6c75ad',
    500: '#20418b',
    950: '#000000',
  },
}
SCSS
$custom: #20418b;
$custom-light: #6c75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20418b",
  "rgb": {
    "r": 32,
    "g": 65,
    "b": 139
  },
  "hsl": {
    "h": 221.495,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39593,
    "c": 0.12947,
    "h": 263.5
  },
  "luminance": 0.05952
}

Semantic roles & 50–950 ramp

primary
#20418B
secondary
#BA984D
accent
#B342E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #20418B

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

Preview Lab → · Contrast checker → · Palette generator →

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