#20218E#20218E

#20218E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.172 H 272.0°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#20218E
RGBrgb(32, 33, 142)
HSLhsl(239, 63%, 34%)
HSVhsv(239, 77%, 56%)
CMYKcmyk(77.5%, 76.8%, 0%, 44.3%)
CIE-LABlab(21.38, 38.18, -59.49)
CIE-LCHlch(21.38, 70.68, 302.69°)
OKLaboklab(33.85% 0.0061 -0.1722)
OKLCHoklch(33.85% 0.172 272)
XYZxyz(6.0204, 3.3471, 25.9147)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20218E #8E8D20
analogous
#20588E #20218E #56208E
triadic
#20218E #8E2021 #218E20
tetradic
#20218E #8E2058 #8E8D20 #208E56
square
#20218E #8E2058 #8E8D20 #208E56
split-complementary
#20218E #8E5620 #588E20
monochromatic
#090A2A #15155C #20218E #2B2DC0 #5152D8

Accessibility & contrast

On white

12.58
#20218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#20218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20218E
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20218E#FFFFFF#000000##FFFFFF
##20218E1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #20218e;
/* rgb */ color: rgb(32, 33, 142);
/* oklch */ color: oklch(33.9% 0.172 272.0);
Tailwind
colors: {
  custom: {
    50: '#6f5eb0',
    500: '#20218e',
    950: '#000000',
  },
}
SCSS
$custom: #20218e;
$custom-light: #6f5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#20218e",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 239.455,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.33852,
    "c": 0.17231,
    "h": 272
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#20218E
secondary
#BBBA4F
accent
#E542E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #20218E

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

Preview Lab → · Contrast checker → · Palette generator →

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