#22135C#22135C

#22135C is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.4% C 0.121 H 283.7°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#22135C
RGBrgb(34, 19, 92)
HSLhsl(252, 66%, 22%)
HSVhsv(252, 79%, 36%)
CMYKcmyk(63%, 79.3%, 0%, 63.9%)
CIE-LABlab(13.10, 29.43, -40.90)
CIE-LCHlch(13.10, 50.39, 305.74°)
OKLaboklab(26.38% 0.0288 -0.1178)
OKLCHoklch(26.38% 0.121 283.7)
XYZxyz(2.8237, 1.5784, 10.2790)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22135C #4D5C13
analogous
#13295C #22135C #47135C
triadic
#22135C #5C2213 #135C22
tetradic
#22135C #5C1329 #4D5C13 #135C47
square
#22135C #5C1329 #4D5C13 #135C47
split-complementary
#22135C #5C4713 #295C13
monochromatic
#090519 #0F0929 #22135C #351D8F #4728C1

Accessibility & contrast

On white

15.96
#22135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#22135C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22135C
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22135C#FFFFFF#000000##FFFFFF
##22135C1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#001F5B
Tritanopia (blue-blind)
#012736
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #22135c;
/* rgb */ color: rgb(34, 19, 92);
/* oklch */ color: oklch(26.4% 0.121 283.7);
Tailwind
colors: {
  custom: {
    50: '#65528b',
    500: '#22135c',
    950: '#000000',
  },
}
SCSS
$custom: #22135c;
$custom-light: #65528b;
$custom-dark: #000000;
JSON
{
  "hex": "#22135c",
  "rgb": {
    "r": 34,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 252.329,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26383,
    "c": 0.12132,
    "h": 283.7
  },
  "luminance": 0.01579
}

Semantic roles & 50–950 ramp

primary
#22135C
secondary
#819437
accent
#E93FC6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #22135C

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

Preview Lab → · Contrast checker → · Palette generator →

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