#24115E#24115E

#24115E is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.5% C 0.126 H 285.3°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#24115E
RGBrgb(36, 17, 94)
HSLhsl(255, 69%, 22%)
HSVhsv(255, 82%, 37%)
CMYKcmyk(61.7%, 81.9%, 0%, 63.1%)
CIE-LABlab(13.13, 31.52, -42.18)
CIE-LCHlch(13.13, 52.66, 306.78°)
OKLaboklab(26.53% 0.0332 -0.1215)
OKLCHoklch(26.53% 0.126 285.3)
XYZxyz(2.9478, 1.5839, 10.7379)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24115E #4B5E11
analogous
#11255E #24115E #4B115E
triadic
#24115E #5E2411 #115E24
tetradic
#24115E #5E1125 #4B5E11 #115E4B
square
#24115E #5E1125 #4B5E11 #115E4B
split-complementary
#24115E #5E4B11 #255E11
monochromatic
#0A051A #10082A #24115E #381A92 #4C24C6

Accessibility & contrast

On white

15.95
#24115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#24115E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24115E
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24115E#FFFFFF#000000##FFFFFF
##24115E1.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#062737
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #24115e;
/* rgb */ color: rgb(36, 17, 94);
/* oklch */ color: oklch(26.5% 0.126 285.3);
Tailwind
colors: {
  custom: {
    50: '#67528d',
    500: '#24115e',
    950: '#000000',
  },
}
SCSS
$custom: #24115e;
$custom-light: #67528d;
$custom-dark: #000000;
JSON
{
  "hex": "#24115e",
  "rgb": {
    "r": 36,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 254.805,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26525,
    "c": 0.12593,
    "h": 285.3
  },
  "luminance": 0.01584
}

Semantic roles & 50–950 ramp

primary
#24115E
secondary
#7E9734
accent
#EC3CC1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #24115E

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

Preview Lab → · Contrast checker → · Palette generator →

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