#22142F#22142F

#22142F is a very dark, muted violet. Relative luminance 0.010; OKLCH L 22.4% C 0.054 H 306.5°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#22142F
RGBrgb(34, 20, 47)
HSLhsl(271, 40%, 13%)
HSVhsv(271, 57%, 18%)
CMYKcmyk(27.7%, 57.4%, 0%, 81.6%)
CIE-LABlab(9.37, 13.89, -15.41)
CIE-LCHlch(9.37, 20.75, 312.04°)
OKLaboklab(22.44% 0.0319 -0.0431)
OKLCHoklch(22.44% 0.054 306.5)
XYZxyz(1.4228, 1.0456, 2.8156)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22142F #212F14
analogous
#14142F #22142F #2F142E
triadic
#22142F #2F2214 #142F22
tetradic
#22142F #2F1414 #212F14 #142E2F
square
#22142F #2F1414 #212F14 #142E2F
split-complementary
#22142F #2E2F14 #142F14
monochromatic
#100915 #100915 #22142F #41265A #603985

Accessibility & contrast

On white

17.37
#22142F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#22142F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22142F
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22142F#FFFFFF#000000##FFFFFF
##22142F1.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1A30
Deuteranopia (green-blind)
#111A2E
Tritanopia (blue-blind)
#20191F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #22142f;
/* rgb */ color: rgb(34, 20, 47);
/* oklch */ color: oklch(22.4% 0.054 306.5);
Tailwind
colors: {
  custom: {
    50: '#5e5167',
    500: '#22142f',
    950: '#000000',
  },
}
SCSS
$custom: #22142f;
$custom-light: #5e5167;
$custom-dark: #000000;
JSON
{
  "hex": "#22142f",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 47
  },
  "hsl": {
    "h": 271.111,
    "s": 40.299,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22438,
    "c": 0.05359,
    "h": 306.5
  },
  "luminance": 0.01046
}

Semantic roles & 50–950 ramp

primary
#22142F
secondary
#4F6639
accent
#D05892
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #22142F

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

Preview Lab → · Contrast checker → · Palette generator →

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