#21219C#21219C

#21219C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.189 H 271.3°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#21219C
RGBrgb(33, 33, 156)
HSLhsl(240, 65%, 37%)
HSVhsv(240, 79%, 61%)
CMYKcmyk(78.8%, 78.8%, 0%, 38.8%)
CIE-LABlab(23.04, 43.01, -65.40)
CIE-LCHlch(23.04, 78.27, 303.33°)
OKLaboklab(35.5% 0.0045 -0.1893)
OKLCHoklch(35.5% 0.189 271.3)
XYZxyz(7.1698, 3.8106, 31.8037)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21219C #9C9C21
analogous
#215F9C #21219C #5F219C
triadic
#21219C #9C2121 #219C21
tetradic
#21219C #9C215F #9C9C21 #219C5F
square
#21219C #9C215F #9C9C21 #219C5F
split-complementary
#21219C #9C5F21 #5F9C21
monochromatic
#0C0C37 #161669 #21219C #2C2CCF #5B5BDC

Accessibility & contrast

On white

11.92
#21219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21219C
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21219C#FFFFFF#000000##FFFFFF
##21219C1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00319A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21219c;
/* rgb */ color: rgb(33, 33, 156);
/* oklch */ color: oklch(35.5% 0.189 271.3);
Tailwind
colors: {
  custom: {
    50: '#735fbb',
    500: '#21219c',
    950: '#000000',
  },
}
SCSS
$custom: #21219c;
$custom-light: #735fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#21219c",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 240,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35501,
    "c": 0.18939,
    "h": 271.3
  },
  "luminance": 0.03811
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21219C

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

Preview Lab → · Contrast checker → · Palette generator →

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