#20217F#20217F

#20217F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.153 H 273.3°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#20217F
RGBrgb(32, 33, 127)
HSLhsl(239, 60%, 31%)
HSVhsv(239, 75%, 50%)
CMYKcmyk(74.8%, 74%, 0%, 50.2%)
CIE-LABlab(19.75, 32.88, -52.77)
CIE-LCHlch(19.75, 62.17, 301.92°)
OKLaboklab(32.2% 0.0087 -0.1526)
OKLCHoklch(32.2% 0.153 273.3)
XYZxyz(4.9690, 2.9266, 20.3776)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20217F #7F7E20
analogous
#20507F #20217F #4E207F
triadic
#20217F #7F2021 #217F20
tetradic
#20217F #7F2050 #7F7E20 #207F4E
square
#20217F #7F2050 #7F7E20 #207F4E
split-complementary
#20217F #7F4E20 #507F20
monochromatic
#07081D #14144E #20217F #2C2EB0 #484AD1

Accessibility & contrast

On white

13.25
#20217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#20217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20217F
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20217F#FFFFFF#000000##FFFFFF
##20217F1.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20217f;
/* rgb */ color: rgb(32, 33, 127);
/* oklch */ color: oklch(32.2% 0.153 273.3);
Tailwind
colors: {
  custom: {
    50: '#6c5da5',
    500: '#20217f',
    950: '#000000',
  },
}
SCSS
$custom: #20217f;
$custom-light: #6c5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#20217f",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 239.368,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.322,
    "c": 0.15288,
    "h": 273.3
  },
  "luminance": 0.02927
}

Semantic roles & 50–950 ramp

primary
#20217F
secondary
#B2B149
accent
#E145E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #20217F

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

Preview Lab → · Contrast checker → · Palette generator →

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