#21219B#21219B

#21219B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.188 H 271.4°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#21219B
RGBrgb(33, 33, 155)
HSLhsl(240, 65%, 37%)
HSVhsv(240, 79%, 61%)
CMYKcmyk(78.7%, 78.7%, 0%, 39.2%)
CIE-LABlab(22.92, 42.68, -64.98)
CIE-LCHlch(22.92, 77.74, 303.30°)
OKLaboklab(35.39% 0.0047 -0.1881)
OKLCHoklch(35.39% 0.188 271.4)
XYZxyz(7.0855, 3.7768, 31.3596)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21219B #9B9B21
analogous
#215E9B #21219B #5E219B
triadic
#21219B #9B2121 #219B21
tetradic
#21219B #9B215E #9B9B21 #219B5E
square
#21219B #9B215E #9B9B21 #219B5E
split-complementary
#21219B #9B5E21 #5E9B21
monochromatic
#0C0C36 #161669 #21219B #2C2CCD #5A5ADC

Accessibility & contrast

On white

11.96
#21219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#21219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21219B
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21219B#FFFFFF#000000##FFFFFF
##21219B1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21219b;
/* rgb */ color: rgb(33, 33, 155);
/* oklch */ color: oklch(35.4% 0.188 271.4);
Tailwind
colors: {
  custom: {
    50: '#735fba',
    500: '#21219b',
    950: '#000000',
  },
}
SCSS
$custom: #21219b;
$custom-light: #735fba;
$custom-dark: #000000;
JSON
{
  "hex": "#21219b",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 240,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35386,
    "c": 0.18817,
    "h": 271.4
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

primary
#21219B
secondary
#C0C058
accent
#E840E8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21219B

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

Preview Lab → · Contrast checker → · Palette generator →

#21219B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva