#24142F#24142F

#24142F is a very dark, muted violet. Relative luminance 0.011; OKLCH L 22.7% C 0.054 H 310.1°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#24142F
RGBrgb(36, 20, 47)
HSLhsl(276, 40%, 13%)
HSVhsv(276, 57%, 18%)
CMYKcmyk(23.4%, 57.4%, 0%, 81.6%)
CIE-LABlab(9.65, 14.62, -14.95)
CIE-LCHlch(9.65, 20.91, 314.35°)
OKLaboklab(22.71% 0.035 -0.0417)
OKLCHoklch(22.71% 0.054 310.1)
XYZxyz(1.4907, 1.0806, 2.8188)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24142F #1F2F14
analogous
#16142F #24142F #2F142C
triadic
#24142F #2F2414 #142F24
tetradic
#24142F #2F1614 #1F2F14 #142C2F
square
#24142F #2F1614 #1F2F14 #142C2F
split-complementary
#24142F #2C2F14 #142F16
monochromatic
#100915 #100915 #24142F #45265A #663985

Accessibility & contrast

On white

17.27
#24142F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#24142F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24142F
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24142F#FFFFFF#000000##FFFFFF
##24142F1.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A30
Deuteranopia (green-blind)
#121B2E
Tritanopia (blue-blind)
#23181F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #24142f;
/* rgb */ color: rgb(36, 20, 47);
/* oklch */ color: oklch(22.7% 0.054 310.1);
Tailwind
colors: {
  custom: {
    50: '#5f5267',
    500: '#24142f',
    950: '#000000',
  },
}
SCSS
$custom: #24142f;
$custom-light: #5f5267;
$custom-dark: #000000;
JSON
{
  "hex": "#24142f",
  "rgb": {
    "r": 36,
    "g": 20,
    "b": 47
  },
  "hsl": {
    "h": 275.556,
    "s": 40.299,
    "l": 13.137
  },
  "oklch": {
    "l": 0.2271,
    "c": 0.05445,
    "h": 310.1
  },
  "luminance": 0.01081
}

Semantic roles & 50–950 ramp

primary
#24142F
secondary
#4B6639
accent
#D05889
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #24142F

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

Preview Lab → · Contrast checker → · Palette generator →

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