#22154E#22154E

#22154E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.099 H 287.6°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#22154E
RGBrgb(34, 21, 78)
HSLhsl(254, 58%, 19%)
HSVhsv(254, 73%, 31%)
CMYKcmyk(56.4%, 73.1%, 0%, 69.4%)
CIE-LABlab(12.13, 23.42, -32.97)
CIE-LCHlch(12.13, 40.44, 305.39°)
OKLaboklab(25.26% 0.0299 -0.0946)
OKLCHoklch(25.26% 0.099 287.6)
XYZxyz(2.3026, 1.4264, 7.3602)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22154E #414E15
analogous
#15254E #22154E #3F154E
triadic
#22154E #4E2215 #154E22
tetradic
#22154E #4E1525 #414E15 #154E3F
square
#22154E #4E1525 #414E15 #154E3F
split-complementary
#22154E #4E3F15 #254E15
monochromatic
#0B0618 #0D081E #22154E #37227E #4C2FAE

Accessibility & contrast

On white

16.34
#22154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#22154E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22154E
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22154E#FFFFFF#000000##FFFFFF
##22154E1.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#12232F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #22154e;
/* rgb */ color: rgb(34, 21, 78);
/* oklch */ color: oklch(25.3% 0.099 287.6);
Tailwind
colors: {
  custom: {
    50: '#625380',
    500: '#22154e',
    950: '#000000',
  },
}
SCSS
$custom: #22154e;
$custom-light: #625380;
$custom-dark: #000000;
JSON
{
  "hex": "#22154e",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 253.684,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2526,
    "c": 0.09922,
    "h": 287.6
  },
  "luminance": 0.01426
}

Semantic roles & 50–950 ramp

primary
#22154E
secondary
#748639
accent
#E147BE
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #22154E

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

Preview Lab → · Contrast checker → · Palette generator →

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