#24155F#24155F

#24155F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.123 H 284.0°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#24155F
RGBrgb(36, 21, 95)
HSLhsl(252, 64%, 23%)
HSVhsv(252, 78%, 37%)
CMYKcmyk(62.1%, 77.9%, 0%, 62.7%)
CIE-LABlab(14.04, 29.57, -41.34)
CIE-LCHlch(14.04, 50.83, 305.57°)
OKLaboklab(27.2% 0.0296 -0.1191)
OKLCHoklch(27.2% 0.123 284)
XYZxyz(3.0606, 1.7374, 10.9983)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24155F #505F15
analogous
#152B5F #24155F #49155F
triadic
#24155F #5F2415 #155F24
tetradic
#24155F #5F152B #505F15 #155F49
square
#24155F #5F152B #505F15 #155F49
split-complementary
#24155F #5F4915 #2B5F15
monochromatic
#090619 #110A2D #24155F #372091 #4A2BC3

Accessibility & contrast

On white

15.58
#24155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#24155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24155F
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24155F#FFFFFF#000000##FFFFFF
##24155F1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#042938
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #24155f;
/* rgb */ color: rgb(36, 21, 95);
/* oklch */ color: oklch(27.2% 0.123 284.0);
Tailwind
colors: {
  custom: {
    50: '#67548d',
    500: '#24155f',
    950: '#000000',
  },
}
SCSS
$custom: #24155f;
$custom-light: #67548d;
$custom-dark: #000000;
JSON
{
  "hex": "#24155f",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 252.162,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.272,
    "c": 0.12271,
    "h": 284
  },
  "luminance": 0.01738
}

Semantic roles & 50–950 ramp

primary
#24155F
secondary
#83963A
accent
#E741C5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #24155F

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

Preview Lab → · Contrast checker → · Palette generator →

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