#221166#221166

#221166 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.137 H 281.5°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#221166
RGBrgb(34, 17, 102)
HSLhsl(252, 71%, 23%)
HSVhsv(252, 83%, 40%)
CMYKcmyk(66.7%, 83.3%, 0%, 60%)
CIE-LABlab(13.83, 33.85, -46.36)
CIE-LCHlch(13.83, 57.40, 306.14°)
OKLaboklab(27.23% 0.0273 -0.1337)
OKLCHoklch(27.23% 0.137 281.5)
XYZxyz(3.2577, 1.7000, 12.7243)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221166 #556611
analogous
#112A66 #221166 #4C1166
triadic
#221166 #662211 #116622
tetradic
#221166 #66112A #556611 #11664C
square
#221166 #66112A #556611 #11664C
split-complementary
#221166 #664C11 #2A6611
monochromatic
#09041A #110832 #221166 #331A9A #4522CF

Accessibility & contrast

On white

15.67
#221166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#221166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221166
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221166#FFFFFF#000000##FFFFFF
##2211661.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002668
Deuteranopia (green-blind)
#002065
Tritanopia (blue-blind)
#002A3B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #221166;
/* rgb */ color: rgb(34, 17, 102);
/* oklch */ color: oklch(27.2% 0.137 281.5);
Tailwind
colors: {
  custom: {
    50: '#685293',
    500: '#221166',
    950: '#000000',
  },
}
SCSS
$custom: #221166;
$custom-light: #685293;
$custom-dark: #000000;
JSON
{
  "hex": "#221166",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 252,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.2723,
    "c": 0.13651,
    "h": 281.5
  },
  "luminance": 0.017
}

Semantic roles & 50–950 ramp

primary
#221166
secondary
#899E35
accent
#EE3ACA
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #221166

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

Preview Lab → · Contrast checker → · Palette generator →

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