#24115B#24115B

#24115B is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.122 H 286.2°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#24115B
RGBrgb(36, 17, 91)
HSLhsl(255, 69%, 21%)
HSVhsv(255, 81%, 36%)
CMYKcmyk(60.4%, 81.3%, 0%, 64.3%)
CIE-LABlab(12.80, 30.56, -40.70)
CIE-LCHlch(12.80, 50.89, 306.90°)
OKLaboklab(26.2% 0.0341 -0.1172)
OKLCHoklch(26.2% 0.122 286.2)
XYZxyz(2.8158, 1.5311, 10.0427)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24115B #485B11
analogous
#11235B #24115B #49115B
triadic
#24115B #5B2411 #115B24
tetradic
#24115B #5B1123 #485B11 #115B49
square
#24115B #5B1123 #485B11 #115B49
split-complementary
#24115B #5B4911 #235B11
monochromatic
#0A051A #100727 #24115B #381B8F #4D24C2

Accessibility & contrast

On white

16.08
#24115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#24115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24115B
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24115B#FFFFFF#000000##FFFFFF
##24115B1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#001F5A
Tritanopia (blue-blind)
#0A2635
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #24115b;
/* rgb */ color: rgb(36, 17, 91);
/* oklch */ color: oklch(26.2% 0.122 286.2);
Tailwind
colors: {
  custom: {
    50: '#66518a',
    500: '#24115b',
    950: '#000000',
  },
}
SCSS
$custom: #24115b;
$custom-light: #66518a;
$custom-dark: #000000;
JSON
{
  "hex": "#24115b",
  "rgb": {
    "r": 36,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 255.405,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26197,
    "c": 0.12203,
    "h": 286.2
  },
  "luminance": 0.01531
}

Semantic roles & 50–950 ramp

primary
#24115B
secondary
#7B9434
accent
#EB3CBE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #24115B

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

Preview Lab → · Contrast checker → · Palette generator →

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