#20418A#20418A

#20418A is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.128 H 263.4°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#20418A
RGBrgb(32, 65, 138)
HSLhsl(221, 62%, 33%)
HSVhsv(221, 77%, 54%)
CMYKcmyk(76.8%, 52.9%, 0%, 45.9%)
CIE-LABlab(29.21, 15.41, -44.20)
CIE-LCHlch(29.21, 46.81, 289.22°)
OKLaboklab(39.51% -0.0147 -0.1272)
OKLCHoklch(39.51% 0.128 263.4)
XYZxyz(7.0718, 5.9219, 24.8102)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20418A #8A6920
analogous
#20768A #20418A #34208A
triadic
#20418A #8A2041 #418A20
tetradic
#20418A #8A2076 #8A6920 #208A34
square
#20418A #8A2076 #8A6920 #208A34
split-complementary
#20418A #8A3420 #768A20
monochromatic
#091227 #142A58 #20418A #2C58BC #4E79D6

Accessibility & contrast

On white

9.61
#20418A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#20418A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20418A
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20418A#FFFFFF#000000##FFFFFF
##20418A1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114A8D
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #20418a;
/* rgb */ color: rgb(32, 65, 138);
/* oklch */ color: oklch(39.5% 0.128 263.4);
Tailwind
colors: {
  custom: {
    50: '#6c75ad',
    500: '#20418a',
    950: '#000000',
  },
}
SCSS
$custom: #20418a;
$custom-light: #6c75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20418a",
  "rgb": {
    "r": 32,
    "g": 65,
    "b": 138
  },
  "hsl": {
    "h": 221.321,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39514,
    "c": 0.12803,
    "h": 263.4
  },
  "luminance": 0.05923
}

Semantic roles & 50–950 ramp

primary
#20418A
secondary
#B9974D
accent
#B342E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #20418A

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

Preview Lab → · Contrast checker → · Palette generator →

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