#20216A#20216A

#20216A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.124 H 275.4°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#20216A
RGBrgb(32, 33, 106)
HSLhsl(239, 54%, 27%)
HSVhsv(239, 70%, 42%)
CMYKcmyk(69.8%, 68.9%, 0%, 58.4%)
CIE-LABlab(17.62, 25.14, -42.75)
CIE-LCHlch(17.62, 49.59, 300.46°)
OKLaboklab(30.02% 0.0116 -0.1233)
OKLCHoklch(30.02% 0.124 275.4)
XYZxyz(3.7402, 2.4351, 13.9058)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20216A #6A6920
analogous
#20466A #20216A #44206A
triadic
#20216A #6A2021 #216A20
tetradic
#20216A #6A2046 #6A6920 #206A44
square
#20216A #6A2046 #6A6920 #206A44
split-complementary
#20216A #6A4420 #466A20
monochromatic
#070718 #12123B #20216A #2E3099 #3F41C5

Accessibility & contrast

On white

14.12
#20216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#20216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20216A
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20216A#FFFFFF#000000##FFFFFF
##20216A1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20216a;
/* rgb */ color: rgb(32, 33, 106);
/* oklch */ color: oklch(30.0% 0.124 275.4);
Tailwind
colors: {
  custom: {
    50: '#665c95',
    500: '#20216a',
    950: '#000000',
  },
}
SCSS
$custom: #20216a;
$custom-light: #665c95;
$custom-dark: #000000;
JSON
{
  "hex": "#20216a",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 239.189,
    "s": 53.623,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3002,
    "c": 0.12388,
    "h": 275.4
  },
  "luminance": 0.02435
}

Semantic roles & 50–950 ramp

primary
#20216A
secondary
#9E9D48
accent
#DB4BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #20216A

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

Preview Lab → · Contrast checker → · Palette generator →

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