#20216E#20216E

#20216E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.130 H 274.9°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#20216E
RGBrgb(32, 33, 110)
HSLhsl(239, 55%, 28%)
HSVhsv(239, 71%, 43%)
CMYKcmyk(70.9%, 70%, 0%, 56.9%)
CIE-LABlab(18.01, 26.64, -44.72)
CIE-LCHlch(18.01, 52.05, 300.79°)
OKLaboklab(30.42% 0.0112 -0.1291)
OKLCHoklch(30.42% 0.13 274.9)
XYZxyz(3.9531, 2.5202, 15.0270)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20216E #6E6D20
analogous
#20486E #20216E #46206E
triadic
#20216E #6E2021 #216E20
tetradic
#20216E #6E2048 #6E6D20 #206E46
square
#20216E #6E2048 #6E6D20 #206E46
split-complementary
#20216E #6E4620 #486E20
monochromatic
#070718 #12133F #20216E #2E2F9D #4142C8

Accessibility & contrast

On white

13.96
#20216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#20216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20216E
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20216E#FFFFFF#000000##FFFFFF
##20216E1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #20216e;
/* rgb */ color: rgb(32, 33, 110);
/* oklch */ color: oklch(30.4% 0.130 274.9);
Tailwind
colors: {
  custom: {
    50: '#675c98',
    500: '#20216e',
    950: '#000000',
  },
}
SCSS
$custom: #20216e;
$custom-light: #675c98;
$custom-dark: #000000;
JSON
{
  "hex": "#20216e",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 239.231,
    "s": 54.93,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30421,
    "c": 0.12959,
    "h": 274.9
  },
  "luminance": 0.02521
}

Semantic roles & 50–950 ramp

primary
#20216E
secondary
#A2A148
accent
#DC4ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #20216E

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

Preview Lab → · Contrast checker → · Palette generator →

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