#24135A#24135A

#24135A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.118 H 286.0°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#24135A
RGBrgb(36, 19, 90)
HSLhsl(254, 65%, 21%)
HSVhsv(254, 79%, 35%)
CMYKcmyk(60%, 78.9%, 0%, 64.7%)
CIE-LABlab(13.10, 29.09, -39.54)
CIE-LCHlch(13.10, 49.09, 306.34°)
OKLaboklab(26.37% 0.0327 -0.1138)
OKLCHoklch(26.37% 0.118 286)
XYZxyz(2.8053, 1.5788, 9.8278)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24135A #495A13
analogous
#13265A #24135A #48135A
triadic
#24135A #5A2413 #135A24
tetradic
#24135A #5A1326 #495A13 #135A48
square
#24135A #5A1326 #495A13 #135A48
split-complementary
#24135A #5A4813 #265A13
monochromatic
#0A0519 #100827 #24135A #381E8D #4C28BF

Accessibility & contrast

On white

15.96
#24135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24135A
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24135A#FFFFFF#000000##FFFFFF
##24135A1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#0B2635
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #24135a;
/* rgb */ color: rgb(36, 19, 90);
/* oklch */ color: oklch(26.4% 0.118 286.0);
Tailwind
colors: {
  custom: {
    50: '#665389',
    500: '#24135a',
    950: '#000000',
  },
}
SCSS
$custom: #24135a;
$custom-light: #665389;
$custom-dark: #000000;
JSON
{
  "hex": "#24135a",
  "rgb": {
    "r": 36,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 254.366,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26373,
    "c": 0.11838,
    "h": 286
  },
  "luminance": 0.01579
}

Semantic roles & 50–950 ramp

primary
#24135A
secondary
#7C9237
accent
#E840C0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #24135A

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

Preview Lab → · Contrast checker → · Palette generator →

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