#24155D#24155D

#24155D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.120 H 284.5°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#24155D
RGBrgb(36, 21, 93)
HSLhsl(253, 63%, 22%)
HSVhsv(253, 77%, 36%)
CMYKcmyk(61.3%, 77.4%, 0%, 63.5%)
CIE-LABlab(13.84, 28.90, -40.35)
CIE-LCHlch(13.84, 49.63, 305.61°)
OKLaboklab(26.99% 0.0301 -0.1162)
OKLCHoklch(26.99% 0.12 284.5)
XYZxyz(2.9709, 1.7015, 10.5257)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24155D #4E5D15
analogous
#152A5D #24155D #48155D
triadic
#24155D #5D2415 #155D24
tetradic
#24155D #5D152A #4E5D15 #155D48
square
#24155D #5D152A #4E5D15 #155D48
split-complementary
#24155D #5D4815 #2A5D15
monochromatic
#0A0619 #110A2B #24155D #37208F #4B2CC1

Accessibility & contrast

On white

15.67
#24155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24155D
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24155D#FFFFFF#000000##FFFFFF
##24155D1.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#072937
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #24155d;
/* rgb */ color: rgb(36, 21, 93);
/* oklch */ color: oklch(27.0% 0.120 284.5);
Tailwind
colors: {
  custom: {
    50: '#66548c',
    500: '#24155d',
    950: '#000000',
  },
}
SCSS
$custom: #24155d;
$custom-light: #66548c;
$custom-dark: #000000;
JSON
{
  "hex": "#24155d",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 252.5,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26989,
    "c": 0.12001,
    "h": 284.5
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#24155D
secondary
#819439
accent
#E642C4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #24155D

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

Preview Lab → · Contrast checker → · Palette generator →

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