#21216A#21216A

#21216A is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.1% C 0.124 H 276.0°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#21216A
RGBrgb(33, 33, 106)
HSLhsl(240, 53%, 27%)
HSVhsv(240, 69%, 42%)
CMYKcmyk(68.9%, 68.9%, 0%, 58.4%)
CIE-LABlab(17.70, 25.30, -42.62)
CIE-LCHlch(17.70, 49.57, 300.69°)
OKLaboklab(30.09% 0.0129 -0.1229)
OKLCHoklch(30.09% 0.124 276)
XYZxyz(3.7717, 2.4513, 13.9073)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21216A #6A6A21
analogous
#21466A #21216A #46216A
triadic
#21216A #6A2121 #216A21
tetradic
#21216A #6A2146 #6A6A21 #216A46
square
#21216A #6A2146 #6A6A21 #216A46
split-complementary
#21216A #6A4621 #466A21
monochromatic
#070717 #12123B #21216A #303099 #4141C4

Accessibility & contrast

On white

14.09
#21216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21216A
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21216A#FFFFFF#000000##FFFFFF
##21216A1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21216a;
/* rgb */ color: rgb(33, 33, 106);
/* oklch */ color: oklch(30.1% 0.124 276.0);
Tailwind
colors: {
  custom: {
    50: '#675c95',
    500: '#21216a',
    950: '#000000',
  },
}
SCSS
$custom: #21216a;
$custom-light: #675c95;
$custom-dark: #000000;
JSON
{
  "hex": "#21216a",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 240,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30094,
    "c": 0.12362,
    "h": 276
  },
  "luminance": 0.02452
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21216A

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

Preview Lab → · Contrast checker → · Palette generator →

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