#22165B#22165B

#22165B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.116 H 283.2°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#22165B
RGBrgb(34, 22, 91)
HSLhsl(250, 61%, 22%)
HSVhsv(250, 76%, 36%)
CMYKcmyk(62.6%, 75.8%, 0%, 64.3%)
CIE-LABlab(13.64, 27.27, -39.33)
CIE-LCHlch(13.64, 47.86, 304.74°)
OKLaboklab(26.74% 0.0265 -0.1133)
OKLCHoklch(26.74% 0.116 283.2)
XYZxyz(2.8343, 1.6690, 10.0683)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22165B #4F5B16
analogous
#162D5B #22165B #45165B
triadic
#22165B #5B2216 #165B22
tetradic
#22165B #5B162D #4F5B16 #165B45
square
#22165B #5B162D #4F5B16 #165B45
split-complementary
#22165B #5B4516 #2D5B16
monochromatic
#090619 #100A2A #22165B #34228C #472EBE

Accessibility & contrast

On white

15.74
#22165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#22165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22165B
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22165B#FFFFFF#000000##FFFFFF
##22165B1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#032836
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #22165b;
/* rgb */ color: rgb(34, 22, 91);
/* oklch */ color: oklch(26.7% 0.116 283.2);
Tailwind
colors: {
  custom: {
    50: '#65548a',
    500: '#22165b',
    950: '#000000',
  },
}
SCSS
$custom: #22165b;
$custom-light: #65548a;
$custom-dark: #000000;
JSON
{
  "hex": "#22165b",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 250.435,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26739,
    "c": 0.11631,
    "h": 283.2
  },
  "luminance": 0.01669
}

Semantic roles & 50–950 ramp

primary
#22165B
secondary
#83923B
accent
#E444C8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #22165B

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

Preview Lab → · Contrast checker → · Palette generator →

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