#21216C#21216C

#21216C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.126 H 275.8°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#21216C
RGBrgb(33, 33, 108)
HSLhsl(240, 53%, 28%)
HSVhsv(240, 69%, 42%)
CMYKcmyk(69.4%, 69.4%, 0%, 57.6%)
CIE-LABlab(17.89, 26.04, -43.61)
CIE-LCHlch(17.89, 50.80, 300.84°)
OKLaboklab(30.29% 0.0127 -0.1258)
OKLCHoklch(30.29% 0.126 275.8)
XYZxyz(3.8769, 2.4934, 14.4614)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21216C #6C6C21
analogous
#21466C #21216C #46216C
triadic
#21216C #6C2121 #216C21
tetradic
#21216C #6C2146 #6C6C21 #216C46
square
#21216C #6C2146 #6C6C21 #216C46
split-complementary
#21216C #6C4621 #466C21
monochromatic
#070717 #13133D #21216C #2F2F9B #4242C5

Accessibility & contrast

On white

14.01
#21216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21216C
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21216C#FFFFFF#000000##FFFFFF
##21216C1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.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: #21216c;
/* rgb */ color: rgb(33, 33, 108);
/* oklch */ color: oklch(30.3% 0.126 275.8);
Tailwind
colors: {
  custom: {
    50: '#675c97',
    500: '#21216c',
    950: '#000000',
  },
}
SCSS
$custom: #21216c;
$custom-light: #675c97;
$custom-dark: #000000;
JSON
{
  "hex": "#21216c",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 240,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30292,
    "c": 0.12649,
    "h": 275.8
  },
  "luminance": 0.02494
}

Semantic roles & 50–950 ramp

primary
#21216C
secondary
#A0A049
accent
#DD4BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #21216C

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

Preview Lab → · Contrast checker → · Palette generator →

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