#22155D#22155D

#22155D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 26.8% C 0.120 H 282.9°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#22155D
RGBrgb(34, 21, 93)
HSLhsl(251, 63%, 22%)
HSVhsv(251, 77%, 36%)
CMYKcmyk(63.4%, 77.4%, 0%, 63.5%)
CIE-LABlab(13.63, 28.58, -40.69)
CIE-LCHlch(13.63, 49.73, 305.08°)
OKLaboklab(26.79% 0.0269 -0.1172)
OKLCHoklch(26.79% 0.12 282.9)
XYZxyz(2.9030, 1.6665, 10.5225)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22155D #505D15
analogous
#152C5D #22155D #46155D
triadic
#22155D #5D2215 #155D22
tetradic
#22155D #5D152C #505D15 #155D46
square
#22155D #5D152C #505D15 #155D46
split-complementary
#22155D #5D4615 #2C5D15
monochromatic
#090619 #100A2B #22155D #34208F #472CC1

Accessibility & contrast

On white

15.75
#22155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22155D
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22155D#FFFFFF#000000##FFFFFF
##22155D1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #22155d;
/* rgb */ color: rgb(34, 21, 93);
/* oklch */ color: oklch(26.8% 0.120 282.9);
Tailwind
colors: {
  custom: {
    50: '#65548c',
    500: '#22155d',
    950: '#000000',
  },
}
SCSS
$custom: #22155d;
$custom-light: #65548c;
$custom-dark: #000000;
JSON
{
  "hex": "#22155d",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 250.833,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26792,
    "c": 0.1203,
    "h": 282.9
  },
  "luminance": 0.01667
}

Semantic roles & 50–950 ramp

primary
#22155D
secondary
#849439
accent
#E642C8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #22155D

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

Preview Lab → · Contrast checker → · Palette generator →

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