#22154C#22154C

#22154C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.096 H 288.3°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#22154C
RGBrgb(34, 21, 76)
HSLhsl(254, 57%, 19%)
HSVhsv(254, 72%, 30%)
CMYKcmyk(55.3%, 72.4%, 0%, 70.2%)
CIE-LABlab(11.95, 22.73, -31.89)
CIE-LCHlch(11.95, 39.16, 305.48°)
OKLaboklab(25.07% 0.0302 -0.0914)
OKLCHoklch(25.07% 0.096 288.3)
XYZxyz(2.2320, 1.3981, 6.9883)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22154C #3F4C15
analogous
#15244C #22154C #3E154C
triadic
#22154C #4C2215 #154C22
tetradic
#22154C #4C1524 #3F4C15 #154C3E
square
#22154C #4C1524 #3F4C15 #154C3E
split-complementary
#22154C #4C3E15 #244C15
monochromatic
#0B0718 #0D081C #22154C #37227C #4D2FAC

Accessibility & contrast

On white

16.41
#22154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#22154C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22154C
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22154C#FFFFFF#000000##FFFFFF
##22154C1.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#13222E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #22154c;
/* rgb */ color: rgb(34, 21, 76);
/* oklch */ color: oklch(25.1% 0.096 288.3);
Tailwind
colors: {
  custom: {
    50: '#62537f',
    500: '#22154c',
    950: '#000000',
  },
}
SCSS
$custom: #22154c;
$custom-light: #62537f;
$custom-dark: #000000;
JSON
{
  "hex": "#22154c",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 254.182,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25067,
    "c": 0.0963,
    "h": 288.3
  },
  "luminance": 0.01398
}

Semantic roles & 50–950 ramp

primary
#22154C
secondary
#728439
accent
#E048BC
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #22154C

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

Preview Lab → · Contrast checker → · Palette generator →

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