#24135D#24135D

#24135D is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.122 H 285.1°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#24135D
RGBrgb(36, 19, 93)
HSLhsl(254, 66%, 22%)
HSVhsv(254, 80%, 36%)
CMYKcmyk(61.3%, 79.6%, 0%, 63.5%)
CIE-LABlab(13.42, 30.08, -41.04)
CIE-LCHlch(13.42, 50.88, 306.24°)
OKLaboklab(26.69% 0.0319 -0.1182)
OKLCHoklch(26.69% 0.122 285.1)
XYZxyz(2.9356, 1.6310, 10.5139)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24135D #4C5D13
analogous
#13275D #24135D #49135D
triadic
#24135D #5D2413 #135D24
tetradic
#24135D #5D1327 #4C5D13 #135D49
square
#24135D #5D1327 #4C5D13 #135D49
split-complementary
#24135D #5D4913 #275D13
monochromatic
#0A0519 #10092A #24135D #381D90 #4B28C3

Accessibility & contrast

On white

15.83
#24135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#24135D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24135D
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24135D#FFFFFF#000000##FFFFFF
##24135D1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#072837
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #24135d;
/* rgb */ color: rgb(36, 19, 93);
/* oklch */ color: oklch(26.7% 0.122 285.1);
Tailwind
colors: {
  custom: {
    50: '#67538c',
    500: '#24135d',
    950: '#000000',
  },
}
SCSS
$custom: #24135d;
$custom-light: #67538c;
$custom-dark: #000000;
JSON
{
  "hex": "#24135d",
  "rgb": {
    "r": 36,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 253.784,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26693,
    "c": 0.12239,
    "h": 285.1
  },
  "luminance": 0.01631
}

Semantic roles & 50–950 ramp

primary
#24135D
secondary
#7F9537
accent
#E93FC2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #24135D

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

Preview Lab → · Contrast checker → · Palette generator →

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