#21216B#21216B

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

Color values

HEX#21216B
RGBrgb(33, 33, 107)
HSLhsl(240, 53%, 27%)
HSVhsv(240, 69%, 42%)
CMYKcmyk(69.2%, 69.2%, 0%, 58%)
CIE-LABlab(17.79, 25.67, -43.12)
CIE-LCHlch(17.79, 50.18, 300.77°)
OKLaboklab(30.19% 0.0128 -0.1244)
OKLCHoklch(30.19% 0.125 275.9)
XYZxyz(3.8240, 2.4723, 14.1827)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21216B #6B6B21
analogous
#21466B #21216B #46216B
triadic
#21216B #6B2121 #216B21
tetradic
#21216B #6B2146 #6B6B21 #216B46
square
#21216B #6B2146 #6B6B21 #216B46
split-complementary
#21216B #6B4621 #466B21
monochromatic
#070717 #13133C #21216B #2F2F9A #4242C5

Accessibility & contrast

On white

14.05
#21216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21216B
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21216B#FFFFFF#000000##FFFFFF
##21216B1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21216b;
/* rgb */ color: rgb(33, 33, 107);
/* oklch */ color: oklch(30.2% 0.125 275.9);
Tailwind
colors: {
  custom: {
    50: '#675c96',
    500: '#21216b',
    950: '#000000',
  },
}
SCSS
$custom: #21216b;
$custom-light: #675c96;
$custom-dark: #000000;
JSON
{
  "hex": "#21216b",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 240,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30193,
    "c": 0.12506,
    "h": 275.9
  },
  "luminance": 0.02473
}

Semantic roles & 50–950 ramp

primary
#21216B
secondary
#9F9F49
accent
#DC4CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #21216B

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

Preview Lab → · Contrast checker → · Palette generator →

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