#20216B#20216B

#20216B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.1% C 0.125 H 275.3°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#20216B
RGBrgb(32, 33, 107)
HSLhsl(239, 54%, 27%)
HSVhsv(239, 70%, 42%)
CMYKcmyk(70.1%, 69.2%, 0%, 58%)
CIE-LABlab(17.72, 25.52, -43.24)
CIE-LCHlch(17.72, 50.21, 300.55°)
OKLaboklab(30.12% 0.0115 -0.1248)
OKLCHoklch(30.12% 0.125 275.3)
XYZxyz(3.7925, 2.4560, 14.1813)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20216B #6B6A20
analogous
#20476B #20216B #45206B
triadic
#20216B #6B2021 #216B20
tetradic
#20216B #6B2047 #6B6A20 #206B45
square
#20216B #6B2047 #6B6A20 #206B45
split-complementary
#20216B #6B4520 #476B20
monochromatic
#070718 #12123C #20216B #2E309A #4041C6

Accessibility & contrast

On white

14.08
#20216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20216B
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20216B#FFFFFF#000000##FFFFFF
##20216B1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20216b;
/* rgb */ color: rgb(32, 33, 107);
/* oklch */ color: oklch(30.1% 0.125 275.3);
Tailwind
colors: {
  custom: {
    50: '#665c96',
    500: '#20216b',
    950: '#000000',
  },
}
SCSS
$custom: #20216b;
$custom-light: #665c96;
$custom-dark: #000000;
JSON
{
  "hex": "#20216b",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 239.2,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30119,
    "c": 0.12532,
    "h": 275.3
  },
  "luminance": 0.02456
}

Semantic roles & 50–950 ramp

primary
#20216B
secondary
#9F9E48
accent
#DB4ADD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #20216B

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

Preview Lab → · Contrast checker → · Palette generator →

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