#22154B#22154B

#22154B is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.095 H 288.7°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#22154B
RGBrgb(34, 21, 75)
HSLhsl(254, 56%, 19%)
HSVhsv(254, 72%, 29%)
CMYKcmyk(54.7%, 72%, 0%, 70.6%)
CIE-LABlab(11.85, 22.39, -31.35)
CIE-LCHlch(11.85, 38.53, 305.53°)
OKLaboklab(24.97% 0.0304 -0.0898)
OKLCHoklch(24.97% 0.095 288.7)
XYZxyz(2.1975, 1.3843, 6.8067)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22154B #3E4B15
analogous
#15234B #22154B #3D154B
triadic
#22154B #4B2215 #154B22
tetradic
#22154B #4B1523 #3E4B15 #154B3D
square
#22154B #4B1523 #3E4B15 #154B3D
split-complementary
#22154B #4B3D15 #234B15
monochromatic
#0B0718 #0C081B #22154B #38227B #4D30AB

Accessibility & contrast

On white

16.45
#22154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22154B
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22154B#FFFFFF#000000##FFFFFF
##22154B1.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#001E4A
Tritanopia (blue-blind)
#14222D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #22154b;
/* rgb */ color: rgb(34, 21, 75);
/* oklch */ color: oklch(25.0% 0.095 288.7);
Tailwind
colors: {
  custom: {
    50: '#62537e',
    500: '#22154b',
    950: '#000000',
  },
}
SCSS
$custom: #22154b;
$custom-light: #62537e;
$custom-dark: #000000;
JSON
{
  "hex": "#22154b",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 254.444,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24972,
    "c": 0.09484,
    "h": 288.7
  },
  "luminance": 0.01384
}

Semantic roles & 50–950 ramp

primary
#22154B
secondary
#718339
accent
#E048BB
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #22154B

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

Preview Lab → · Contrast checker → · Palette generator →

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