#24173D#24173D

#24173D is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.070 H 296.6°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#24173D
RGBrgb(36, 23, 61)
HSLhsl(261, 45%, 16%)
HSVhsv(261, 62%, 24%)
CMYKcmyk(41%, 62.3%, 0%, 76.1%)
CIE-LABlab(11.45, 16.82, -22.19)
CIE-LCHlch(11.45, 27.84, 307.16°)
OKLaboklab(24.36% 0.0315 -0.0628)
OKLCHoklch(24.36% 0.07 296.6)
XYZxyz(1.8760, 1.3248, 4.5708)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24173D #303D17
analogous
#171D3D #24173D #37173D
triadic
#24173D #3D2417 #173D24
tetradic
#24173D #3D171D #303D17 #173D37
square
#24173D #3D171D #303D17 #173D37
split-complementary
#24173D #3D3717 #1D3D17
monochromatic
#0D0816 #0D0816 #24173D #3E2869 #583996

Accessibility & contrast

On white

16.60
#24173D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#24173D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24173D
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24173D#FFFFFF#000000##FFFFFF
##24173D1.0016.601.2616.60
#FFFFFF16.601.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071F3E
Deuteranopia (green-blind)
#0B1E3C
Tritanopia (blue-blind)
#1E1F27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #24173d;
/* rgb */ color: rgb(36, 23, 61);
/* oklch */ color: oklch(24.4% 0.070 296.6);
Tailwind
colors: {
  custom: {
    50: '#615473',
    500: '#24173d',
    950: '#000000',
  },
}
SCSS
$custom: #24173d;
$custom-light: #615473;
$custom-dark: #000000;
JSON
{
  "hex": "#24173d",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 61
  },
  "hsl": {
    "h": 260.526,
    "s": 45.238,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24362,
    "c": 0.07028,
    "h": 296.6
  },
  "luminance": 0.01325
}

Semantic roles & 50–950 ramp

primary
#24173D
secondary
#61743C
accent
#D553A8
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050208
muted
#79787B

Preview Lab

Preview with #24173D

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

Preview Lab → · Contrast checker → · Palette generator →

#24173D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva