#22154A#22154A

#22154A is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.9% C 0.093 H 289.1°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#22154A
RGBrgb(34, 21, 74)
HSLhsl(255, 56%, 19%)
HSVhsv(255, 72%, 29%)
CMYKcmyk(54.1%, 71.6%, 0%, 71%)
CIE-LABlab(11.76, 22.04, -30.81)
CIE-LCHlch(11.76, 37.88, 305.58°)
OKLaboklab(24.88% 0.0305 -0.0883)
OKLCHoklch(24.88% 0.093 289.1)
XYZxyz(2.1635, 1.3707, 6.6278)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22154A #3D4A15
analogous
#15224A #22154A #3C154A
triadic
#22154A #4A2215 #154A22
tetradic
#22154A #4A1522 #3D4A15 #154A3C
square
#22154A #4A1522 #3D4A15 #154A3C
split-complementary
#22154A #4A3C15 #224A15
monochromatic
#0B0718 #0C071A #22154A #38237A #4E30A9

Accessibility & contrast

On white

16.48
#22154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#22154A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22154A
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22154A#FFFFFF#000000##FFFFFF
##22154A1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#001E49
Tritanopia (blue-blind)
#15222D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #22154a;
/* rgb */ color: rgb(34, 21, 74);
/* oklch */ color: oklch(24.9% 0.093 289.1);
Tailwind
colors: {
  custom: {
    50: '#61537d',
    500: '#22154a',
    950: '#000000',
  },
}
SCSS
$custom: #22154a;
$custom-light: #61537d;
$custom-dark: #000000;
JSON
{
  "hex": "#22154a",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 254.717,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24877,
    "c": 0.09338,
    "h": 289.1
  },
  "luminance": 0.01371
}

Semantic roles & 50–950 ramp

primary
#22154A
secondary
#708239
accent
#DF49BA
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #22154A

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

Preview Lab → · Contrast checker → · Palette generator →

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