#22155C#22155C

#22155C is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.119 H 283.2°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#22155C
RGBrgb(34, 21, 92)
HSLhsl(251, 63%, 22%)
HSVhsv(251, 77%, 36%)
CMYKcmyk(63%, 77.2%, 0%, 63.9%)
CIE-LABlab(13.53, 28.24, -40.20)
CIE-LCHlch(13.53, 49.12, 305.09°)
OKLaboklab(26.69% 0.0271 -0.1158)
OKLCHoklch(26.69% 0.119 283.2)
XYZxyz(2.8590, 1.6489, 10.2908)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22155C #4F5C15
analogous
#152C5C #22155C #46155C
triadic
#22155C #5C2215 #155C22
tetradic
#22155C #5C152C #4F5C15 #155C46
square
#22155C #5C152C #4F5C15 #155C46
split-complementary
#22155C #5C4615 #2C5C15
monochromatic
#090619 #100A2A #22155C #34208E #472CC0

Accessibility & contrast

On white

15.79
#22155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22155C
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22155C#FFFFFF#000000##FFFFFF
##22155C1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#012837
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #22155c;
/* rgb */ color: rgb(34, 21, 92);
/* oklch */ color: oklch(26.7% 0.119 283.2);
Tailwind
colors: {
  custom: {
    50: '#65548b',
    500: '#22155c',
    950: '#000000',
  },
}
SCSS
$custom: #22155c;
$custom-light: #65548b;
$custom-dark: #000000;
JSON
{
  "hex": "#22155c",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 250.986,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26686,
    "c": 0.11894,
    "h": 283.2
  },
  "luminance": 0.01649
}

Semantic roles & 50–950 ramp

primary
#22155C
secondary
#839339
accent
#E642C8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #22155C

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

Preview Lab → · Contrast checker → · Palette generator →

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