#24135E#24135E

#24135E is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.124 H 284.8°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#24135E
RGBrgb(36, 19, 94)
HSLhsl(254, 66%, 22%)
HSVhsv(254, 80%, 37%)
CMYKcmyk(61.7%, 79.8%, 0%, 63.1%)
CIE-LABlab(13.52, 30.41, -41.53)
CIE-LCHlch(13.52, 51.47, 306.21°)
OKLaboklab(26.8% 0.0316 -0.1196)
OKLCHoklch(26.8% 0.124 284.8)
XYZxyz(2.9802, 1.6488, 10.7487)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24135E #4D5E13
analogous
#13285E #24135E #4A135E
triadic
#24135E #5E2413 #135E24
tetradic
#24135E #5E1328 #4D5E13 #135E4A
square
#24135E #5E1328 #4D5E13 #135E4A
split-complementary
#24135E #5E4A13 #285E13
monochromatic
#0A0519 #11092B #24135E #371D91 #4B28C4

Accessibility & contrast

On white

15.79
#24135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24135E
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24135E#FFFFFF#000000##FFFFFF
##24135E1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#052837
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #24135e;
/* rgb */ color: rgb(36, 19, 94);
/* oklch */ color: oklch(26.8% 0.124 284.8);
Tailwind
colors: {
  custom: {
    50: '#67538c',
    500: '#24135e',
    950: '#000000',
  },
}
SCSS
$custom: #24135e;
$custom-light: #67538c;
$custom-dark: #000000;
JSON
{
  "hex": "#24135e",
  "rgb": {
    "r": 36,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 253.6,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.268,
    "c": 0.12371,
    "h": 284.8
  },
  "luminance": 0.01649
}

Semantic roles & 50–950 ramp

primary
#24135E
secondary
#809637
accent
#E93FC3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #24135E

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

Preview Lab → · Contrast checker → · Palette generator →

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