#22165A#22165A

#22165A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.115 H 283.4°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#22165A
RGBrgb(34, 22, 90)
HSLhsl(251, 61%, 22%)
HSVhsv(251, 76%, 35%)
CMYKcmyk(62.2%, 75.6%, 0%, 64.7%)
CIE-LABlab(13.54, 26.93, -38.82)
CIE-LCHlch(13.54, 47.25, 304.74°)
OKLaboklab(26.64% 0.0267 -0.1118)
OKLCHoklch(26.64% 0.115 283.4)
XYZxyz(2.7915, 1.6519, 9.8426)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22165A #4E5A16
analogous
#162C5A #22165A #44165A
triadic
#22165A #5A2216 #165A22
tetradic
#22165A #5A162C #4E5A16 #165A44
square
#22165A #5A162C #4E5A16 #165A44
split-complementary
#22165A #5A4416 #2C5A16
monochromatic
#090619 #0F0A29 #22165A #35228B #472EBC

Accessibility & contrast

On white

15.78
#22165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22165A
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22165A#FFFFFF#000000##FFFFFF
##22165A1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#042836
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #22165a;
/* rgb */ color: rgb(34, 22, 90);
/* oklch */ color: oklch(26.6% 0.115 283.4);
Tailwind
colors: {
  custom: {
    50: '#655489',
    500: '#22165a',
    950: '#000000',
  },
}
SCSS
$custom: #22165a;
$custom-light: #655489;
$custom-dark: #000000;
JSON
{
  "hex": "#22165a",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 250.588,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26636,
    "c": 0.11492,
    "h": 283.4
  },
  "luminance": 0.01652
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22165A

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

Preview Lab → · Contrast checker → · Palette generator →

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