#21219A#21219A

#21219A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.187 H 271.5°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#21219A
RGBrgb(33, 33, 154)
HSLhsl(240, 65%, 37%)
HSVhsv(240, 79%, 60%)
CMYKcmyk(78.6%, 78.6%, 0%, 39.6%)
CIE-LABlab(22.80, 42.34, -64.55)
CIE-LCHlch(22.80, 77.20, 303.26°)
OKLaboklab(35.27% 0.0049 -0.1869)
OKLCHoklch(35.27% 0.187 271.5)
XYZxyz(7.0018, 3.7434, 30.9191)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21219A #9A9A21
analogous
#215E9A #21219A #5E219A
triadic
#21219A #9A2121 #219A21
tetradic
#21219A #9A215E #9A9A21 #219A5E
square
#21219A #9A215E #9A9A21 #219A5E
split-complementary
#21219A #9A5E21 #5E9A21
monochromatic
#0B0B35 #161668 #21219A #2C2CCC #5A5ADC

Accessibility & contrast

On white

12.01
#21219A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#21219A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21219A
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21219A#FFFFFF#000000##FFFFFF
##21219A1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003098
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #21219a;
/* rgb */ color: rgb(33, 33, 154);
/* oklch */ color: oklch(35.3% 0.187 271.5);
Tailwind
colors: {
  custom: {
    50: '#735fb9',
    500: '#21219a',
    950: '#000000',
  },
}
SCSS
$custom: #21219a;
$custom-light: #735fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#21219a",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 154
  },
  "hsl": {
    "h": 240,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35271,
    "c": 0.18695,
    "h": 271.5
  },
  "luminance": 0.03744
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21219A

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

Preview Lab → · Contrast checker → · Palette generator →

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