#24174D#24174D

#24174D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.095 H 289.1°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#24174D
RGBrgb(36, 23, 77)
HSLhsl(254, 54%, 20%)
HSVhsv(254, 70%, 30%)
CMYKcmyk(53.2%, 70.1%, 0%, 69.8%)
CIE-LABlab(12.76, 22.18, -31.25)
CIE-LCHlch(12.76, 38.33, 305.37°)
OKLaboklab(25.74% 0.0309 -0.0895)
OKLCHoklch(25.74% 0.095 289.1)
XYZxyz(2.3731, 1.5236, 7.1888)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24174D #404D17
analogous
#17254D #24174D #3F174D
triadic
#24174D #4D2417 #174D24
tetradic
#24174D #4D1725 #404D17 #174D3F
square
#24174D #4D1725 #404D17 #174D3F
split-complementary
#24174D #4D3F17 #254D17
monochromatic
#0B0718 #0E091E #24174D #3A257C #5033AB

Accessibility & contrast

On white

16.09
#24174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#24174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24174D
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24174D#FFFFFF#000000##FFFFFF
##24174D1.0016.091.3016.09
#FFFFFF16.091.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#16242F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #24174d;
/* rgb */ color: rgb(36, 23, 77);
/* oklch */ color: oklch(25.7% 0.095 289.1);
Tailwind
colors: {
  custom: {
    50: '#63557f',
    500: '#24174d',
    950: '#000000',
  },
}
SCSS
$custom: #24174d;
$custom-light: #63557f;
$custom-dark: #000000;
JSON
{
  "hex": "#24174d",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 254.444,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25738,
    "c": 0.09467,
    "h": 289.1
  },
  "luminance": 0.01524
}

Semantic roles & 50–950 ramp

primary
#24174D
secondary
#73843C
accent
#DD4ABA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05030A
muted
#7A787C

Preview Lab

Preview with #24174D

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

Preview Lab → · Contrast checker → · Palette generator →

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