#21217E#21217E

#21217E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.151 H 273.8°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#21217E
RGBrgb(33, 33, 126)
HSLhsl(240, 58%, 31%)
HSVhsv(240, 74%, 49%)
CMYKcmyk(73.8%, 73.8%, 0%, 50.6%)
CIE-LABlab(19.71, 32.63, -52.19)
CIE-LCHlch(19.71, 61.55, 302.01°)
OKLaboklab(32.16% 0.0102 -0.1509)
OKLCHoklch(32.16% 0.151 273.8)
XYZxyz(4.9357, 2.9169, 20.0375)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21217E #7E7E21
analogous
#214F7E #21217E #4F217E
triadic
#21217E #7E2121 #217E21
tetradic
#21217E #7E214F #7E7E21 #217E4F
square
#21217E #7E214F #7E7E21 #217E4F
split-complementary
#21217E #7E4F21 #4F7E21
monochromatic
#08081D #14144E #21217E #2E2EAE #4A4AD0

Accessibility & contrast

On white

13.26
#21217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#21217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21217E
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21217E#FFFFFF#000000##FFFFFF
##21217E1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21217e;
/* rgb */ color: rgb(33, 33, 126);
/* oklch */ color: oklch(32.2% 0.151 273.8);
Tailwind
colors: {
  custom: {
    50: '#6c5da4',
    500: '#21217e',
    950: '#000000',
  },
}
SCSS
$custom: #21217e;
$custom-light: #6c5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#21217e",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32157,
    "c": 0.15128,
    "h": 273.8
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#21217E
secondary
#B1B14A
accent
#E246E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #21217E

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

Preview Lab → · Contrast checker → · Palette generator →

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