#221232#221232

#221232 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.2% C 0.062 H 305.0°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#221232
RGBrgb(34, 18, 50)
HSLhsl(270, 47%, 13%)
HSVhsv(270, 64%, 20%)
CMYKcmyk(32%, 64%, 0%, 80.4%)
CIE-LABlab(9.02, 16.22, -18.16)
CIE-LCHlch(9.02, 24.35, 311.77°)
OKLaboklab(22.25% 0.0357 -0.0511)
OKLCHoklch(22.25% 0.062 305)
XYZxyz(1.4516, 1.0030, 3.1341)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221232 #223212
analogous
#121232 #221232 #321232
triadic
#221232 #322212 #123222
tetradic
#221232 #321212 #223212 #123232
square
#221232 #321212 #223212 #123232
split-complementary
#221232 #323212 #123212
monochromatic
#0F0817 #0F0817 #221232 #41225F #5F328C

Accessibility & contrast

On white

17.49
#221232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#221232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221232
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221232#FFFFFF#000000##FFFFFF
##2212321.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071933
Deuteranopia (green-blind)
#0C1A31
Tritanopia (blue-blind)
#1F181F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #221232;
/* rgb */ color: rgb(34, 18, 50);
/* oklch */ color: oklch(22.2% 0.062 305.0);
Tailwind
colors: {
  custom: {
    50: '#5e506a',
    500: '#221232',
    950: '#000000',
  },
}
SCSS
$custom: #221232;
$custom-light: #5e506a;
$custom-dark: #000000;
JSON
{
  "hex": "#221232",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 50
  },
  "hsl": {
    "h": 270,
    "s": 47.059,
    "l": 13.333
  },
  "oklch": {
    "l": 0.22245,
    "c": 0.06235,
    "h": 305
  },
  "luminance": 0.01003
}

Semantic roles & 50–950 ramp

primary
#221232
secondary
#506A36
accent
#D75194
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #221232

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

Preview Lab → · Contrast checker → · Palette generator →

#221232 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva