#21219F#21219F

#21219F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.193 H 271.1°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#21219F
RGBrgb(33, 33, 159)
HSLhsl(240, 66%, 38%)
HSVhsv(240, 79%, 62%)
CMYKcmyk(79.2%, 79.2%, 0%, 37.6%)
CIE-LABlab(23.38, 44.01, -66.66)
CIE-LCHlch(23.38, 79.87, 303.43°)
OKLaboklab(35.85% 0.0039 -0.193)
OKLCHoklch(35.85% 0.193 271.1)
XYZxyz(7.4269, 3.9134, 33.1581)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21219F #9F9F21
analogous
#21609F #21219F #60219F
triadic
#21219F #9F2121 #219F21
tetradic
#21219F #9F2160 #9F9F21 #219F60
square
#21219F #9F2160 #9F9F21 #219F60
split-complementary
#21219F #9F6021 #609F21
monochromatic
#0C0C3A #16166C #21219F #2C2CD2 #5D5DDD

Accessibility & contrast

On white

11.78
#21219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#21219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21219F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21219F#FFFFFF#000000##FFFFFF
##21219F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21219f;
/* rgb */ color: rgb(33, 33, 159);
/* oklch */ color: oklch(35.8% 0.193 271.1);
Tailwind
colors: {
  custom: {
    50: '#745fbd',
    500: '#21219f',
    950: '#000000',
  },
}
SCSS
$custom: #21219f;
$custom-light: #745fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#21219f",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 240,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.35847,
    "c": 0.19302,
    "h": 271.1
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#21219F
secondary
#C2C25A
accent
#E93FE9
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21219F

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

Preview Lab → · Contrast checker → · Palette generator →

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