#21217C#21217C

#21217C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.149 H 274.0°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#21217C
RGBrgb(33, 33, 124)
HSLhsl(240, 58%, 31%)
HSVhsv(240, 73%, 49%)
CMYKcmyk(73.4%, 73.4%, 0%, 51.4%)
CIE-LABlab(19.50, 31.91, -51.27)
CIE-LCHlch(19.50, 60.39, 301.90°)
OKLaboklab(31.94% 0.0105 -0.1482)
OKLCHoklch(31.94% 0.149 274)
XYZxyz(4.8079, 2.8658, 19.3647)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21217C #7C7C21
analogous
#214E7C #21217C #4E217C
triadic
#21217C #7C2121 #217C21
tetradic
#21217C #7C214E #7C7C21 #217C4E
square
#21217C #7C214E #7C7C21 #217C4E
split-complementary
#21217C #7C4E21 #4E7C21
monochromatic
#07071B #14144C #21217C #2E2EAC #4949CF

Accessibility & contrast

On white

13.35
#21217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#21217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21217C
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21217C#FFFFFF#000000##FFFFFF
##21217C1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21217c;
/* rgb */ color: rgb(33, 33, 124);
/* oklch */ color: oklch(31.9% 0.149 274.0);
Tailwind
colors: {
  custom: {
    50: '#6b5da3',
    500: '#21217c',
    950: '#000000',
  },
}
SCSS
$custom: #21217c;
$custom-light: #6b5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#21217c",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 240,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31944,
    "c": 0.1486,
    "h": 274
  },
  "luminance": 0.02866
}

Semantic roles & 50–950 ramp

primary
#21217C
secondary
#AFAF4A
accent
#E147E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #21217C

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

Preview Lab → · Contrast checker → · Palette generator →

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