#21219E#21219E

#21219E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.192 H 271.2°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#21219E
RGBrgb(33, 33, 158)
HSLhsl(240, 65%, 37%)
HSVhsv(240, 79%, 62%)
CMYKcmyk(79.1%, 79.1%, 0%, 38%)
CIE-LABlab(23.27, 43.67, -66.24)
CIE-LCHlch(23.27, 79.34, 303.40°)
OKLaboklab(35.73% 0.0041 -0.1918)
OKLCHoklch(35.73% 0.192 271.2)
XYZxyz(7.3405, 3.8789, 32.7029)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21219E #9E9E21
analogous
#21609E #21219E #60219E
triadic
#21219E #9E2121 #219E21
tetradic
#21219E #9E2160 #9E9E21 #219E60
square
#21219E #9E2160 #9E9E21 #219E60
split-complementary
#21219E #9E6021 #609E21
monochromatic
#0C0C39 #16166B #21219E #2C2CD1 #5C5CDD

Accessibility & contrast

On white

11.82
#21219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21219E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21219E#FFFFFF#000000##FFFFFF
##21219E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21219e;
/* rgb */ color: rgb(33, 33, 158);
/* oklch */ color: oklch(35.7% 0.192 271.2);
Tailwind
colors: {
  custom: {
    50: '#745fbc',
    500: '#21219e',
    950: '#000000',
  },
}
SCSS
$custom: #21219e;
$custom-light: #745fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#21219e",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 240,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.35731,
    "c": 0.19181,
    "h": 271.2
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#21219E
secondary
#C1C159
accent
#E83FE8
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21219E

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

Preview Lab → · Contrast checker → · Palette generator →

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