#21209B#21209B

#21209B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.189 H 271.5°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#21209B
RGBrgb(33, 32, 155)
HSLhsl(240, 66%, 37%)
HSVhsv(240, 79%, 61%)
CMYKcmyk(78.7%, 79.4%, 0%, 39.2%)
CIE-LABlab(22.73, 43.22, -65.29)
CIE-LCHlch(22.73, 78.30, 303.50°)
OKLaboklab(35.25% 0.005 -0.189)
OKLCHoklch(35.25% 0.189 271.5)
XYZxyz(7.0581, 3.7221, 31.3505)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21209B #9A9B20
analogous
#205D9B #21209B #5F209B
triadic
#21209B #9B2120 #209B21
tetradic
#21209B #9B205D #9A9B20 #209B5F
square
#21209B #9B205D #9A9B20 #209B5F
split-complementary
#21209B #9B5F20 #5D9B20
monochromatic
#0B0B36 #161668 #21209B #2C2ACE #5A59DD

Accessibility & contrast

On white

12.04
#21209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#21209B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21209B
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21209B#FFFFFF#000000##FFFFFF
##21209B1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #21209b;
/* rgb */ color: rgb(33, 32, 155);
/* oklch */ color: oklch(35.3% 0.189 271.5);
Tailwind
colors: {
  custom: {
    50: '#735eba',
    500: '#21209b',
    950: '#000000',
  },
}
SCSS
$custom: #21209b;
$custom-light: #735eba;
$custom-dark: #000000;
JSON
{
  "hex": "#21209b",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 240.488,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35253,
    "c": 0.18908,
    "h": 271.5
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#21209B
secondary
#C0C156
accent
#E93FE7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #21209B

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

Preview Lab → · Contrast checker → · Palette generator →

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