#22142B#22142B

#22142B is a very dark, muted violet. Relative luminance 0.010; OKLCH L 22.2% C 0.047 H 311.1°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#22142B
RGBrgb(34, 20, 43)
HSLhsl(277, 37%, 12%)
HSVhsv(277, 53%, 17%)
CMYKcmyk(20.9%, 53.5%, 0%, 83.1%)
CIE-LABlab(9.11, 12.71, -12.85)
CIE-LCHlch(9.11, 18.08, 314.68°)
OKLaboklab(22.17% 0.0311 -0.0357)
OKLCHoklch(22.17% 0.047 311.1)
XYZxyz(1.3458, 1.0148, 2.4100)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22142B #1D2B14
analogous
#17142B #22142B #2B1429
triadic
#22142B #2B2214 #142B22
tetradic
#22142B #2B1714 #1D2B14 #14292B
square
#22142B #2B1714 #1D2B14 #14292B
split-complementary
#22142B #292B14 #142B17
monochromatic
#110A15 #110A15 #22142B #432755 #643B7F

Accessibility & contrast

On white

17.46
#22142B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#22142B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22142B
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22142B#FFFFFF#000000##FFFFFF
##22142B1.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F192C
Deuteranopia (green-blind)
#131A2A
Tritanopia (blue-blind)
#21171D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #22142b;
/* rgb */ color: rgb(34, 20, 43);
/* oklch */ color: oklch(22.2% 0.047 311.1);
Tailwind
colors: {
  custom: {
    50: '#5d5164',
    500: '#22142b',
    950: '#000000',
  },
}
SCSS
$custom: #22142b;
$custom-light: #5d5164;
$custom-dark: #000000;
JSON
{
  "hex": "#22142b",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 43
  },
  "hsl": {
    "h": 276.522,
    "s": 36.508,
    "l": 12.353
  },
  "oklch": {
    "l": 0.22168,
    "c": 0.04731,
    "h": 311.1
  },
  "luminance": 0.01015
}

Semantic roles & 50–950 ramp

primary
#22142B
secondary
#49613A
accent
#CD5B88
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040205
muted
#79787A

Preview Lab

Preview with #22142B

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

Preview Lab → · Contrast checker → · Palette generator →

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