#22115A#22115A

#22115A is a dark, vivid violet. Relative luminance 0.015; OKLCH L 25.9% C 0.121 H 284.9°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#22115A
RGBrgb(34, 17, 90)
HSLhsl(254, 68%, 21%)
HSVhsv(254, 81%, 35%)
CMYKcmyk(62.2%, 81.1%, 0%, 64.7%)
CIE-LABlab(12.47, 29.92, -40.58)
CIE-LCHlch(12.47, 50.42, 306.41°)
OKLaboklab(25.88% 0.031 -0.1169)
OKLCHoklch(25.88% 0.121 284.9)
XYZxyz(2.7050, 1.4790, 9.8138)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22115A #495A11
analogous
#11245A #22115A #46115A
triadic
#22115A #5A2211 #115A22
tetradic
#22115A #5A1124 #495A11 #115A46
square
#22115A #5A1124 #495A11 #115A46
split-complementary
#22115A #5A4611 #245A11
monochromatic
#0A051A #0F0727 #22115A #351B8D #4924C1

Accessibility & contrast

On white

16.21
#22115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#22115A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22115A
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22115A#FFFFFF#000000##FFFFFF
##22115A1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225C
Deuteranopia (green-blind)
#001E59
Tritanopia (blue-blind)
#052635
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #22115a;
/* rgb */ color: rgb(34, 17, 90);
/* oklch */ color: oklch(25.9% 0.121 284.9);
Tailwind
colors: {
  custom: {
    50: '#655189',
    500: '#22115a',
    950: '#000000',
  },
}
SCSS
$custom: #22115a;
$custom-light: #655189;
$custom-dark: #000000;
JSON
{
  "hex": "#22115a",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 253.973,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25878,
    "c": 0.12094,
    "h": 284.9
  },
  "luminance": 0.01479
}

Semantic roles & 50–950 ramp

primary
#22115A
secondary
#7D9334
accent
#EB3DC2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #22115A

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

Preview Lab → · Contrast checker → · Palette generator →

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