#24155B#24155B

#24155B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.117 H 285.1°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#24155B
RGBrgb(36, 21, 91)
HSLhsl(253, 63%, 22%)
HSVhsv(253, 77%, 36%)
CMYKcmyk(60.4%, 76.9%, 0%, 64.3%)
CIE-LABlab(13.63, 28.23, -39.34)
CIE-LCHlch(13.63, 48.42, 305.66°)
OKLaboklab(26.78% 0.0306 -0.1132)
OKLCHoklch(26.78% 0.117 285.1)
XYZxyz(2.8835, 1.6666, 10.0652)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24155B #4C5B15
analogous
#15295B #24155B #47155B
triadic
#24155B #5B2415 #155B24
tetradic
#24155B #5B1529 #4C5B15 #155B47
square
#24155B #5B1529 #4C5B15 #155B47
split-complementary
#24155B #5B4715 #295B15
monochromatic
#0A0619 #100A29 #24155B #38208D #4B2CBE

Accessibility & contrast

On white

15.75
#24155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#24155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24155B
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24155B#FFFFFF#000000##FFFFFF
##24155B1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#092836
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #24155b;
/* rgb */ color: rgb(36, 21, 91);
/* oklch */ color: oklch(26.8% 0.117 285.1);
Tailwind
colors: {
  custom: {
    50: '#66548a',
    500: '#24155b',
    950: '#000000',
  },
}
SCSS
$custom: #24155b;
$custom-light: #66548a;
$custom-dark: #000000;
JSON
{
  "hex": "#24155b",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 252.857,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2678,
    "c": 0.11729,
    "h": 285.1
  },
  "luminance": 0.01667
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24155B

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

Preview Lab → · Contrast checker → · Palette generator →

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