#22115C#22115C

#22115C is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.1% C 0.124 H 284.3°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#22115C
RGBrgb(34, 17, 92)
HSLhsl(254, 69%, 21%)
HSVhsv(254, 82%, 36%)
CMYKcmyk(63%, 81.5%, 0%, 63.9%)
CIE-LABlab(12.69, 30.58, -41.56)
CIE-LCHlch(12.69, 51.60, 306.35°)
OKLaboklab(26.1% 0.0304 -0.1198)
OKLCHoklch(26.1% 0.124 284.3)
XYZxyz(2.7913, 1.5135, 10.2682)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22115C #4B5C11
analogous
#11265C #22115C #48115C
triadic
#22115C #5C2211 #115C22
tetradic
#22115C #5C1126 #4B5C11 #115C48
square
#22115C #5C1126 #4B5C11 #115C48
split-complementary
#22115C #5C4811 #265C11
monochromatic
#0A051A #0F0728 #22115C #351B90 #4824C3

Accessibility & contrast

On white

16.12
#22115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22115C
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22115C#FFFFFF#000000##FFFFFF
##22115C1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001E5B
Tritanopia (blue-blind)
#022636
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #22115c;
/* rgb */ color: rgb(34, 17, 92);
/* oklch */ color: oklch(26.1% 0.124 284.3);
Tailwind
colors: {
  custom: {
    50: '#66518b',
    500: '#22115c',
    950: '#000000',
  },
}
SCSS
$custom: #22115c;
$custom-light: #66518b;
$custom-dark: #000000;
JSON
{
  "hex": "#22115c",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 253.6,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26099,
    "c": 0.12357,
    "h": 284.3
  },
  "luminance": 0.01514
}

Semantic roles & 50–950 ramp

primary
#22115C
secondary
#7F9534
accent
#EC3CC4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #22115C

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

Preview Lab → · Contrast checker → · Palette generator →

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