#221168#221168

#221168 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.5% C 0.139 H 281.0°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#221168
RGBrgb(34, 17, 104)
HSLhsl(252, 72%, 24%)
HSVhsv(252, 84%, 41%)
CMYKcmyk(67.3%, 83.7%, 0%, 59.2%)
CIE-LABlab(14.06, 34.50, -47.29)
CIE-LCHlch(14.06, 58.53, 306.11°)
OKLaboklab(27.46% 0.0267 -0.1365)
OKLCHoklch(27.46% 0.139 281)
XYZxyz(3.3580, 1.7402, 13.2530)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221168 #576811
analogous
#112B68 #221168 #4D1168
triadic
#221168 #682211 #116822
tetradic
#221168 #68112B #576811 #11684D
square
#221168 #68112B #576811 #11684D
split-complementary
#221168 #684D11 #2B6811
monochromatic
#09041A #110833 #221168 #331A9D #4422D1

Accessibility & contrast

On white

15.58
#221168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#221168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221168
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221168#FFFFFF#000000##FFFFFF
##2211681.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276A
Deuteranopia (green-blind)
#002066
Tritanopia (blue-blind)
#002B3D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #221168;
/* rgb */ color: rgb(34, 17, 104);
/* oklch */ color: oklch(27.5% 0.139 281.0);
Tailwind
colors: {
  custom: {
    50: '#685294',
    500: '#221168',
    950: '#000000',
  },
}
SCSS
$custom: #221168;
$custom-light: #685294;
$custom-dark: #000000;
JSON
{
  "hex": "#221168",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 251.724,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27461,
    "c": 0.13905,
    "h": 281
  },
  "luminance": 0.0174
}

Semantic roles & 50–950 ramp

primary
#221168
secondary
#8BA035
accent
#EF39CB
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #221168

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

Preview Lab → · Contrast checker → · Palette generator →

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