#22115B#22115B

#22115B is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.0% C 0.122 H 284.6°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#22115B
RGBrgb(34, 17, 91)
HSLhsl(254, 69%, 21%)
HSVhsv(254, 81%, 36%)
CMYKcmyk(62.6%, 81.3%, 0%, 64.3%)
CIE-LABlab(12.58, 30.25, -41.07)
CIE-LCHlch(12.58, 51.01, 306.38°)
OKLaboklab(25.99% 0.0307 -0.1183)
OKLCHoklch(25.99% 0.122 284.6)
XYZxyz(2.7479, 1.4961, 10.0395)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22115B #4A5B11
analogous
#11255B #22115B #47115B
triadic
#22115B #5B2211 #115B22
tetradic
#22115B #5B1125 #4A5B11 #115B47
square
#22115B #5B1125 #4A5B11 #115B47
split-complementary
#22115B #5B4711 #255B11
monochromatic
#0A051A #0F0727 #22115B #351B8F #4924C2

Accessibility & contrast

On white

16.16
#22115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22115B
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22115B#FFFFFF#000000##FFFFFF
##22115B1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#001E5A
Tritanopia (blue-blind)
#032635
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #22115b;
/* rgb */ color: rgb(34, 17, 91);
/* oklch */ color: oklch(26.0% 0.122 284.6);
Tailwind
colors: {
  custom: {
    50: '#65518a',
    500: '#22115b',
    950: '#000000',
  },
}
SCSS
$custom: #22115b;
$custom-light: #65518a;
$custom-dark: #000000;
JSON
{
  "hex": "#22115b",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 253.784,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25988,
    "c": 0.12225,
    "h": 284.6
  },
  "luminance": 0.01496
}

Semantic roles & 50–950 ramp

primary
#22115B
secondary
#7E9434
accent
#EB3CC3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #22115B

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

Preview Lab → · Contrast checker → · Palette generator →

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