#20217D#20217D

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

Color values

HEX#20217D
RGBrgb(32, 33, 125)
HSLhsl(239, 59%, 31%)
HSVhsv(239, 74%, 49%)
CMYKcmyk(74.4%, 73.6%, 0%, 51%)
CIE-LABlab(19.54, 32.15, -51.84)
CIE-LCHlch(19.54, 61.01, 301.81°)
OKLaboklab(31.99% 0.0091 -0.1499)
OKLCHoklch(31.99% 0.15 273.5)
XYZxyz(4.8400, 2.8750, 19.6979)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20217D #7D7C20
analogous
#204F7D #20217D #4D207D
triadic
#20217D #7D2021 #217D20
tetradic
#20217D #7D204F #7D7C20 #207D4D
square
#20217D #7D204F #7D7C20 #207D4D
split-complementary
#20217D #7D4D20 #4F7D20
monochromatic
#07071C #14144C #20217D #2C2EAE #4749D0

Accessibility & contrast

On white

13.33
#20217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20217D
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20217D#FFFFFF#000000##FFFFFF
##20217D1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20217d;
/* rgb */ color: rgb(32, 33, 125);
/* oklch */ color: oklch(32.0% 0.150 273.5);
Tailwind
colors: {
  custom: {
    50: '#6b5da4',
    500: '#20217d',
    950: '#000000',
  },
}
SCSS
$custom: #20217d;
$custom-light: #6b5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#20217d",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 239.355,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31985,
    "c": 0.15021,
    "h": 273.5
  },
  "luminance": 0.02875
}

Semantic roles & 50–950 ramp

primary
#20217D
secondary
#B0AF49
accent
#E145E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #20217D

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

Preview Lab → · Contrast checker → · Palette generator →

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