#20217E#20217E

#20217E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.152 H 273.4°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#20217E
RGBrgb(32, 33, 126)
HSLhsl(239, 59%, 31%)
HSVhsv(239, 75%, 49%)
CMYKcmyk(74.6%, 73.8%, 0%, 50.6%)
CIE-LABlab(19.64, 32.51, -52.31)
CIE-LCHlch(19.64, 61.59, 301.87°)
OKLaboklab(32.09% 0.0089 -0.1513)
OKLCHoklch(32.09% 0.152 273.4)
XYZxyz(4.9042, 2.9007, 20.0360)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20217E #7E7D20
analogous
#20507E #20217E #4E207E
triadic
#20217E #7E2021 #217E20
tetradic
#20217E #7E2050 #7E7D20 #207E4E
square
#20217E #7E2050 #7E7D20 #207E4E
split-complementary
#20217E #7E4E20 #507E20
monochromatic
#07071C #14144D #20217E #2C2EAF #4849D0

Accessibility & contrast

On white

13.29
#20217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#20217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20217E
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20217E#FFFFFF#000000##FFFFFF
##20217E1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #20217e;
/* rgb */ color: rgb(32, 33, 126);
/* oklch */ color: oklch(32.1% 0.152 273.4);
Tailwind
colors: {
  custom: {
    50: '#6b5da4',
    500: '#20217e',
    950: '#000000',
  },
}
SCSS
$custom: #20217e;
$custom-light: #6b5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#20217e",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 239.362,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32092,
    "c": 0.15155,
    "h": 273.4
  },
  "luminance": 0.02901
}

Semantic roles & 50–950 ramp

primary
#20217E
secondary
#B1B049
accent
#E145E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #20217E

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

Preview Lab → · Contrast checker → · Palette generator →

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