#24135C#24135C

#24135C is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.121 H 285.4°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#24135C
RGBrgb(36, 19, 92)
HSLhsl(254, 66%, 22%)
HSVhsv(254, 79%, 36%)
CMYKcmyk(60.9%, 79.3%, 0%, 63.9%)
CIE-LABlab(13.31, 29.75, -40.54)
CIE-LCHlch(13.31, 50.28, 306.27°)
OKLaboklab(26.59% 0.0321 -0.1167)
OKLCHoklch(26.59% 0.121 285.4)
XYZxyz(2.8916, 1.6133, 10.2822)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24135C #4B5C13
analogous
#13265C #24135C #49135C
triadic
#24135C #5C2413 #135C24
tetradic
#24135C #5C1326 #4B5C13 #135C49
square
#24135C #5C1326 #4B5C13 #135C49
split-complementary
#24135C #5C4913 #265C13
monochromatic
#0A0519 #100929 #24135C #381D8F #4C28C1

Accessibility & contrast

On white

15.88
#24135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#24135C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24135C
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24135C#FFFFFF#000000##FFFFFF
##24135C1.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#082736
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #24135c;
/* rgb */ color: rgb(36, 19, 92);
/* oklch */ color: oklch(26.6% 0.121 285.4);
Tailwind
colors: {
  custom: {
    50: '#66538b',
    500: '#24135c',
    950: '#000000',
  },
}
SCSS
$custom: #24135c;
$custom-light: #66538b;
$custom-dark: #000000;
JSON
{
  "hex": "#24135c",
  "rgb": {
    "r": 36,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 253.973,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26586,
    "c": 0.12106,
    "h": 285.4
  },
  "luminance": 0.01614
}

Semantic roles & 50–950 ramp

primary
#24135C
secondary
#7E9437
accent
#E93FC1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #24135C

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

Preview Lab → · Contrast checker → · Palette generator →

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