#24154D#24154D

#24154D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.098 H 290.0°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#24154D
RGBrgb(36, 21, 77)
HSLhsl(256, 57%, 19%)
HSVhsv(256, 73%, 30%)
CMYKcmyk(53.2%, 72.7%, 0%, 69.8%)
CIE-LABlab(12.27, 23.51, -32.05)
CIE-LCHlch(12.27, 39.74, 306.26°)
OKLaboklab(25.38% 0.0333 -0.0918)
OKLCHoklch(25.38% 0.098 290)
XYZxyz(2.3349, 1.4471, 7.1760)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24154D #3E4D15
analogous
#15224D #24154D #40154D
triadic
#24154D #4D2415 #154D24
tetradic
#24154D #4D1522 #3E4D15 #154D40
square
#24154D #4D1522 #3E4D15 #154D40
split-complementary
#24154D #4D4015 #224D15
monochromatic
#0B0718 #0E081D #24154D #3A227D #512FAD

Accessibility & contrast

On white

16.29
#24154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#24154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24154D
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24154D#FFFFFF#000000##FFFFFF
##24154D1.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#17232E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #24154d;
/* rgb */ color: rgb(36, 21, 77);
/* oklch */ color: oklch(25.4% 0.098 290.0);
Tailwind
colors: {
  custom: {
    50: '#63537f',
    500: '#24154d',
    950: '#000000',
  },
}
SCSS
$custom: #24154d;
$custom-light: #63537f;
$custom-dark: #000000;
JSON
{
  "hex": "#24154d",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 256.071,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25384,
    "c": 0.09768,
    "h": 290
  },
  "luminance": 0.01447
}

Semantic roles & 50–950 ramp

primary
#24154D
secondary
#718539
accent
#E047B7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #24154D

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

Preview Lab → · Contrast checker → · Palette generator →

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