#20216C#20216C

#20216C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.127 H 275.2°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#20216C
RGBrgb(32, 33, 108)
HSLhsl(239, 54%, 27%)
HSVhsv(239, 70%, 42%)
CMYKcmyk(70.4%, 69.4%, 0%, 57.6%)
CIE-LABlab(17.82, 25.89, -43.74)
CIE-LCHlch(17.82, 50.83, 300.63°)
OKLaboklab(30.22% 0.0114 -0.1262)
OKLCHoklch(30.22% 0.127 275.2)
XYZxyz(3.8454, 2.4772, 14.4599)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20216C #6C6B20
analogous
#20476C #20216C #45206C
triadic
#20216C #6C2021 #216C20
tetradic
#20216C #6C2047 #6C6B20 #206C45
square
#20216C #6C2047 #6C6B20 #206C45
split-complementary
#20216C #6C4520 #476C20
monochromatic
#070718 #12133D #20216C #2E2F9B #4042C6

Accessibility & contrast

On white

14.04
#20216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20216C
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20216C#FFFFFF#000000##FFFFFF
##20216C1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #20216c;
/* rgb */ color: rgb(32, 33, 108);
/* oklch */ color: oklch(30.2% 0.127 275.2);
Tailwind
colors: {
  custom: {
    50: '#675c97',
    500: '#20216c',
    950: '#000000',
  },
}
SCSS
$custom: #20216c;
$custom-light: #675c97;
$custom-dark: #000000;
JSON
{
  "hex": "#20216c",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 239.211,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30219,
    "c": 0.12675,
    "h": 275.2
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#20216C
secondary
#A09F48
accent
#DC4ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #20216C

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

Preview Lab → · Contrast checker → · Palette generator →

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