#22165E#22165E

#22165E is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.120 H 282.4°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#22165E
RGBrgb(34, 22, 94)
HSLhsl(250, 62%, 23%)
HSVhsv(250, 77%, 37%)
CMYKcmyk(63.8%, 76.6%, 0%, 63.1%)
CIE-LABlab(13.95, 28.31, -40.83)
CIE-LCHlch(13.95, 49.68, 304.73°)
OKLaboklab(27.05% 0.0258 -0.1177)
OKLCHoklch(27.05% 0.12 282.4)
XYZxyz(2.9663, 1.7219, 10.7635)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22165E #525E16
analogous
#162E5E #22165E #46165E
triadic
#22165E #5E2216 #165E22
tetradic
#22165E #5E162E #525E16 #165E46
square
#22165E #5E162E #525E16 #165E46
split-complementary
#22165E #5E4616 #2E5E16
monochromatic
#090619 #100A2C #22165E #342290 #462DC1

Accessibility & contrast

On white

15.62
#22165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#22165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22165E
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22165E#FFFFFF#000000##FFFFFF
##22165E1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #22165e;
/* rgb */ color: rgb(34, 22, 94);
/* oklch */ color: oklch(27.1% 0.120 282.4);
Tailwind
colors: {
  custom: {
    50: '#66548c',
    500: '#22165e',
    950: '#000000',
  },
}
SCSS
$custom: #22165e;
$custom-light: #66548c;
$custom-dark: #000000;
JSON
{
  "hex": "#22165e",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 250,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27054,
    "c": 0.12046,
    "h": 282.4
  },
  "luminance": 0.01722
}

Semantic roles & 50–950 ramp

primary
#22165E
secondary
#86953B
accent
#E543CA
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #22165E

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

Preview Lab → · Contrast checker → · Palette generator →

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