#20217C#20217C

#20217C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.149 H 273.5°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#20217C
RGBrgb(32, 33, 124)
HSLhsl(239, 59%, 31%)
HSVhsv(239, 74%, 49%)
CMYKcmyk(74.2%, 73.4%, 0%, 51.4%)
CIE-LABlab(19.43, 31.79, -51.38)
CIE-LCHlch(19.43, 60.42, 301.75°)
OKLaboklab(31.88% 0.0092 -0.1486)
OKLCHoklch(31.88% 0.149 273.5)
XYZxyz(4.7764, 2.8496, 19.3632)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20217C #7C7B20
analogous
#204F7C #20217C #4D207C
triadic
#20217C #7C2021 #217C20
tetradic
#20217C #7C204F #7C7B20 #207C4D
square
#20217C #7C204F #7C7B20 #207C4D
split-complementary
#20217C #7C4D20 #4F7C20
monochromatic
#07071B #13144B #20217C #2D2EAD #4748CF

Accessibility & contrast

On white

13.38
#20217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#20217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20217C
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20217C#FFFFFF#000000##FFFFFF
##20217C1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20217c;
/* rgb */ color: rgb(32, 33, 124);
/* oklch */ color: oklch(31.9% 0.149 273.5);
Tailwind
colors: {
  custom: {
    50: '#6b5da3',
    500: '#20217c',
    950: '#000000',
  },
}
SCSS
$custom: #20217c;
$custom-light: #6b5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#20217c",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 239.348,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31878,
    "c": 0.14888,
    "h": 273.5
  },
  "luminance": 0.0285
}

Semantic roles & 50–950 ramp

primary
#20217C
secondary
#AFAE49
accent
#E046E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #20217C

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

Preview Lab → · Contrast checker → · Palette generator →

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