#22155B#22155B

#22155B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.118 H 283.5°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#22155B
RGBrgb(34, 21, 91)
HSLhsl(251, 63%, 22%)
HSVhsv(251, 77%, 36%)
CMYKcmyk(62.6%, 76.9%, 0%, 64.3%)
CIE-LABlab(13.42, 27.89, -39.70)
CIE-LCHlch(13.42, 48.52, 305.09°)
OKLaboklab(26.58% 0.0274 -0.1143)
OKLCHoklch(26.58% 0.118 283.5)
XYZxyz(2.8156, 1.6316, 10.0621)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22155B #4E5B15
analogous
#152B5B #22155B #45155B
triadic
#22155B #5B2215 #155B22
tetradic
#22155B #5B152B #4E5B15 #155B45
square
#22155B #5B152B #4E5B15 #155B45
split-complementary
#22155B #5B4515 #2B5B15
monochromatic
#090619 #0F0A29 #22155B #35208D #472CBE

Accessibility & contrast

On white

15.83
#22155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22155B
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22155B#FFFFFF#000000##FFFFFF
##22155B1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22155b;
/* rgb */ color: rgb(34, 21, 91);
/* oklch */ color: oklch(26.6% 0.118 283.5);
Tailwind
colors: {
  custom: {
    50: '#65548a',
    500: '#22155b',
    950: '#000000',
  },
}
SCSS
$custom: #22155b;
$custom-light: #65548a;
$custom-dark: #000000;
JSON
{
  "hex": "#22155b",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 251.143,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2658,
    "c": 0.11756,
    "h": 283.5
  },
  "luminance": 0.01632
}

Semantic roles & 50–950 ramp

primary
#22155B
secondary
#829239
accent
#E642C7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #22155B

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

Preview Lab → · Contrast checker → · Palette generator →

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