#24155C#24155C

#24155C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.119 H 284.8°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#24155C
RGBrgb(36, 21, 92)
HSLhsl(253, 63%, 22%)
HSVhsv(253, 77%, 36%)
CMYKcmyk(60.9%, 77.2%, 0%, 63.9%)
CIE-LABlab(13.73, 28.56, -39.85)
CIE-LCHlch(13.73, 49.03, 305.63°)
OKLaboklab(26.88% 0.0304 -0.1147)
OKLCHoklch(26.88% 0.119 284.8)
XYZxyz(2.9269, 1.6839, 10.2939)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24155C #4D5C15
analogous
#152A5C #24155C #48155C
triadic
#24155C #5C2415 #155C24
tetradic
#24155C #5C152A #4D5C15 #155C48
square
#24155C #5C152A #4D5C15 #155C48
split-complementary
#24155C #5C4815 #2A5C15
monochromatic
#0A0619 #110A2A #24155C #37208E #4B2CC0

Accessibility & contrast

On white

15.71
#24155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#24155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24155C
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24155C#FFFFFF#000000##FFFFFF
##24155C1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#082837
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #24155c;
/* rgb */ color: rgb(36, 21, 92);
/* oklch */ color: oklch(26.9% 0.119 284.8);
Tailwind
colors: {
  custom: {
    50: '#66548b',
    500: '#24155c',
    950: '#000000',
  },
}
SCSS
$custom: #24155c;
$custom-light: #66548b;
$custom-dark: #000000;
JSON
{
  "hex": "#24155c",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 252.676,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26884,
    "c": 0.11866,
    "h": 284.8
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#24155C
secondary
#809339
accent
#E642C3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #24155C

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

Preview Lab → · Contrast checker → · Palette generator →

#24155C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva