#20218D#20218D

#20218D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.171 H 272.1°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#20218D
RGBrgb(32, 33, 141)
HSLhsl(239, 63%, 34%)
HSVhsv(239, 77%, 55%)
CMYKcmyk(77.3%, 76.6%, 0%, 44.7%)
CIE-LABlab(21.27, 37.83, -59.05)
CIE-LCHlch(21.27, 70.13, 302.64°)
OKLaboklab(33.74% 0.0062 -0.1709)
OKLCHoklch(33.74% 0.171 272.1)
XYZxyz(5.9456, 3.3172, 25.5211)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20218D #8D8C20
analogous
#20588D #20218D #56208D
triadic
#20218D #8D2021 #218D20
tetradic
#20218D #8D2058 #8D8C20 #208D56
square
#20218D #8D2058 #8D8C20 #208D56
split-complementary
#20218D #8D5620 #588D20
monochromatic
#090A29 #15155B #20218D #2B2DBF #5051D7

Accessibility & contrast

On white

12.62
#20218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#20218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20218D
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20218D#FFFFFF#000000##FFFFFF
##20218D1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #20218d;
/* rgb */ color: rgb(32, 33, 141);
/* oklch */ color: oklch(33.7% 0.171 272.1);
Tailwind
colors: {
  custom: {
    50: '#6f5eb0',
    500: '#20218d',
    950: '#000000',
  },
}
SCSS
$custom: #20218d;
$custom-light: #6f5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#20218d",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 239.45,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3374,
    "c": 0.17104,
    "h": 272.1
  },
  "luminance": 0.03318
}

Semantic roles & 50–950 ramp

primary
#20218D
secondary
#BAB94E
accent
#E542E6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #20218D

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

Preview Lab → · Contrast checker → · Palette generator →

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