#24142E#24142E

#24142E is a very dark, muted violet. Relative luminance 0.011; OKLCH L 22.6% C 0.053 H 311.2°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#24142E
RGBrgb(36, 20, 46)
HSLhsl(277, 39%, 13%)
HSVhsv(277, 57%, 18%)
CMYKcmyk(21.7%, 56.5%, 0%, 82%)
CIE-LABlab(9.58, 14.33, -14.31)
CIE-LCHlch(9.58, 20.25, 315.03°)
OKLaboklab(22.64% 0.0349 -0.0398)
OKLCHoklch(22.64% 0.053 311.2)
XYZxyz(1.4708, 1.0727, 2.7138)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24142E #1E2E14
analogous
#17142E #24142E #2E142B
triadic
#24142E #2E2414 #142E24
tetradic
#24142E #2E1714 #1E2E14 #142B2E
square
#24142E #2E1714 #1E2E14 #142B2E
split-complementary
#24142E #2B2E14 #142E17
monochromatic
#110915 #110915 #24142E #452759 #673983

Accessibility & contrast

On white

17.29
#24142E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#24142E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24142E
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24142E#FFFFFF#000000##FFFFFF
##24142E1.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A2F
Deuteranopia (green-blind)
#121B2D
Tritanopia (blue-blind)
#23181E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #24142e;
/* rgb */ color: rgb(36, 20, 46);
/* oklch */ color: oklch(22.6% 0.053 311.2);
Tailwind
colors: {
  custom: {
    50: '#5f5267',
    500: '#24142e',
    950: '#000000',
  },
}
SCSS
$custom: #24142e;
$custom-light: #5f5267;
$custom-dark: #000000;
JSON
{
  "hex": "#24142e",
  "rgb": {
    "r": 36,
    "g": 20,
    "b": 46
  },
  "hsl": {
    "h": 276.923,
    "s": 39.394,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22642,
    "c": 0.05293,
    "h": 311.2
  },
  "luminance": 0.01073
}

Semantic roles & 50–950 ramp

primary
#24142E
secondary
#4A6539
accent
#CF5986
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #24142E

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

Preview Lab → · Contrast checker → · Palette generator →

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