#21217A#21217A

#21217A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.146 H 274.2°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#21217A
RGBrgb(33, 33, 122)
HSLhsl(240, 57%, 30%)
HSVhsv(240, 73%, 48%)
CMYKcmyk(73%, 73%, 0%, 52.2%)
CIE-LABlab(19.29, 31.18, -50.34)
CIE-LCHlch(19.29, 59.21, 301.78°)
OKLaboklab(31.73% 0.0108 -0.1455)
OKLCHoklch(31.73% 0.146 274.2)
XYZxyz(4.6827, 2.8157, 18.7053)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21217A #7A7A21
analogous
#214D7A #21217A #4D217A
triadic
#21217A #7A2121 #217A21
tetradic
#21217A #7A214D #7A7A21 #217A4D
square
#21217A #7A214D #7A7A21 #217A4D
split-complementary
#21217A #7A4D21 #4D7A21
monochromatic
#07071A #14144A #21217A #2E2EAA #4848CD

Accessibility & contrast

On white

13.43
#21217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#21217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21217A
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21217A#FFFFFF#000000##FFFFFF
##21217A1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21217a;
/* rgb */ color: rgb(33, 33, 122);
/* oklch */ color: oklch(31.7% 0.146 274.2);
Tailwind
colors: {
  custom: {
    50: '#6b5da1',
    500: '#21217a',
    950: '#000000',
  },
}
SCSS
$custom: #21217a;
$custom-light: #6b5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#21217a",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 240,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31732,
    "c": 0.14591,
    "h": 274.2
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#21217A
secondary
#ADAD4A
accent
#E147E1
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #21217A

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

Preview Lab → · Contrast checker → · Palette generator →

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