#20217A#20217A

#20217A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.146 H 273.7°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#20217A
RGBrgb(32, 33, 122)
HSLhsl(239, 58%, 30%)
HSVhsv(239, 74%, 48%)
CMYKcmyk(73.8%, 73%, 0%, 52.2%)
CIE-LABlab(19.22, 31.06, -50.45)
CIE-LCHlch(19.22, 59.25, 301.62°)
OKLaboklab(31.67% 0.0095 -0.1459)
OKLCHoklch(31.67% 0.146 273.7)
XYZxyz(4.6512, 2.7995, 18.7038)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20217A #7A7920
analogous
#204E7A #20217A #4C207A
triadic
#20217A #7A2021 #217A20
tetradic
#20217A #7A204E #7A7920 #207A4C
square
#20217A #7A204E #7A7920 #207A4C
split-complementary
#20217A #7A4C20 #4E7A20
monochromatic
#070719 #13144A #20217A #2D2EAA #4647CE

Accessibility & contrast

On white

13.46
#20217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#20217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20217A
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20217A#FFFFFF#000000##FFFFFF
##20217A1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20217a;
/* rgb */ color: rgb(32, 33, 122);
/* oklch */ color: oklch(31.7% 0.146 273.7);
Tailwind
colors: {
  custom: {
    50: '#6a5da1',
    500: '#20217a',
    950: '#000000',
  },
}
SCSS
$custom: #20217a;
$custom-light: #6a5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#20217a",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 239.333,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31665,
    "c": 0.14618,
    "h": 273.7
  },
  "luminance": 0.028
}

Semantic roles & 50–950 ramp

primary
#20217A
secondary
#ADAC49
accent
#E046E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #20217A

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

Preview Lab → · Contrast checker → · Palette generator →

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