#21217D#21217D

#21217D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.150 H 273.9°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#21217D
RGBrgb(33, 33, 125)
HSLhsl(240, 58%, 31%)
HSVhsv(240, 74%, 49%)
CMYKcmyk(73.6%, 73.6%, 0%, 51%)
CIE-LABlab(19.60, 32.27, -51.73)
CIE-LCHlch(19.60, 60.97, 301.95°)
OKLaboklab(32.05% 0.0103 -0.1496)
OKLCHoklch(32.05% 0.15 273.9)
XYZxyz(4.8715, 2.8912, 19.6994)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21217D #7D7D21
analogous
#214F7D #21217D #4F217D
triadic
#21217D #7D2121 #217D21
tetradic
#21217D #7D214F #7D7D21 #217D4F
square
#21217D #7D214F #7D7D21 #217D4F
split-complementary
#21217D #7D4F21 #4F7D21
monochromatic
#07071C #14144D #21217D #2E2EAD #4949CF

Accessibility & contrast

On white

13.30
#21217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21217D
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21217D#FFFFFF#000000##FFFFFF
##21217D1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21217d;
/* rgb */ color: rgb(33, 33, 125);
/* oklch */ color: oklch(32.0% 0.150 273.9);
Tailwind
colors: {
  custom: {
    50: '#6b5da4',
    500: '#21217d',
    950: '#000000',
  },
}
SCSS
$custom: #21217d;
$custom-light: #6b5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#21217d",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 240,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3205,
    "c": 0.14995,
    "h": 273.9
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#21217D
secondary
#B0B04A
accent
#E146E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #21217D

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

Preview Lab → · Contrast checker → · Palette generator →

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