#22142A#22142A

#22142A is a very dark, muted violet. Relative luminance 0.010; OKLCH L 22.1% C 0.046 H 312.4°. Best body text is #FFFFFF at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#22142A
RGBrgb(34, 20, 42)
HSLhsl(278, 35%, 12%)
HSVhsv(278, 52%, 16%)
CMYKcmyk(19%, 52.4%, 0%, 83.5%)
CIE-LABlab(9.05, 12.42, -12.21)
CIE-LCHlch(9.05, 17.42, 315.51°)
OKLaboklab(22.1% 0.0309 -0.0338)
OKLCHoklch(22.1% 0.046 312.4)
XYZxyz(1.3277, 1.0076, 2.3146)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22142A #1C2A14
analogous
#17142A #22142A #2A1427
triadic
#22142A #2A2214 #142A22
tetradic
#22142A #2A1714 #1C2A14 #14272A
square
#22142A #2A1714 #1C2A14 #14272A
split-complementary
#22142A #272A14 #142A17
monochromatic
#110A15 #110A15 #22142A #442853 #653B7D

Accessibility & contrast

On white

17.48
#22142A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22142A
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22142A#FFFFFF#000000##FFFFFF
##22142A1.0017.481.2017.48
#FFFFFF17.481.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10192B
Deuteranopia (green-blind)
#131A29
Tritanopia (blue-blind)
#21171D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #22142a;
/* rgb */ color: rgb(34, 20, 42);
/* oklch */ color: oklch(22.1% 0.046 312.4);
Tailwind
colors: {
  custom: {
    50: '#5d5163',
    500: '#22142a',
    950: '#000000',
  },
}
SCSS
$custom: #22142a;
$custom-light: #5d5163;
$custom-dark: #000000;
JSON
{
  "hex": "#22142a",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 42
  },
  "hsl": {
    "h": 278.182,
    "s": 35.484,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22103,
    "c": 0.04576,
    "h": 312.4
  },
  "luminance": 0.01008
}

Semantic roles & 50–950 ramp

primary
#22142A
secondary
#48603A
accent
#CC5C85
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040205
muted
#797879

Preview Lab

Preview with #22142A

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

Preview Lab → · Contrast checker → · Palette generator →

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