#21217F#21217F

#21217F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.153 H 273.7°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#21217F
RGBrgb(33, 33, 127)
HSLhsl(240, 59%, 31%)
HSVhsv(240, 74%, 50%)
CMYKcmyk(74%, 74%, 0%, 50.2%)
CIE-LABlab(19.81, 32.98, -52.66)
CIE-LCHlch(19.81, 62.13, 302.06°)
OKLaboklab(32.26% 0.01 -0.1523)
OKLCHoklch(32.26% 0.153 273.7)
XYZxyz(5.0005, 2.9429, 20.3791)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21217F #7F7F21
analogous
#21507F #21217F #50217F
triadic
#21217F #7F2121 #217F21
tetradic
#21217F #7F2150 #7F7F21 #217F50
square
#21217F #7F2150 #7F7F21 #217F50
split-complementary
#21217F #7F5021 #507F21
monochromatic
#08081E #14144E #21217F #2E2EB0 #4A4AD0

Accessibility & contrast

On white

13.22
#21217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#21217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21217F
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21217F#FFFFFF#000000##FFFFFF
##21217F1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21217f;
/* rgb */ color: rgb(33, 33, 127);
/* oklch */ color: oklch(32.3% 0.153 273.7);
Tailwind
colors: {
  custom: {
    50: '#6c5da5',
    500: '#21217f',
    950: '#000000',
  },
}
SCSS
$custom: #21217f;
$custom-light: #6c5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#21217f",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 240,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32264,
    "c": 0.15261,
    "h": 273.7
  },
  "luminance": 0.02943
}

Semantic roles & 50–950 ramp

primary
#21217F
secondary
#B2B24A
accent
#E246E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #21217F

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

Preview Lab → · Contrast checker → · Palette generator →

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