#24135B#24135B

#24135B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.120 H 285.7°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#24135B
RGBrgb(36, 19, 91)
HSLhsl(254, 65%, 22%)
HSVhsv(254, 79%, 36%)
CMYKcmyk(60.4%, 79.1%, 0%, 64.3%)
CIE-LABlab(13.21, 29.42, -40.04)
CIE-LCHlch(13.21, 49.69, 306.30°)
OKLaboklab(26.48% 0.0324 -0.1153)
OKLCHoklch(26.48% 0.12 285.7)
XYZxyz(2.8482, 1.5960, 10.0535)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24135B #4A5B13
analogous
#13265B #24135B #48135B
triadic
#24135B #5B2413 #135B24
tetradic
#24135B #5B1326 #4A5B13 #135B48
square
#24135B #5B1326 #4A5B13 #135B48
split-complementary
#24135B #5B4813 #265B13
monochromatic
#0A0519 #100828 #24135B #381E8E #4C28C0

Accessibility & contrast

On white

15.92
#24135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24135B
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24135B#FFFFFF#000000##FFFFFF
##24135B1.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#0A2736
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #24135b;
/* rgb */ color: rgb(36, 19, 91);
/* oklch */ color: oklch(26.5% 0.120 285.7);
Tailwind
colors: {
  custom: {
    50: '#66538a',
    500: '#24135b',
    950: '#000000',
  },
}
SCSS
$custom: #24135b;
$custom-light: #66538a;
$custom-dark: #000000;
JSON
{
  "hex": "#24135b",
  "rgb": {
    "r": 36,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 254.167,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26479,
    "c": 0.11972,
    "h": 285.7
  },
  "luminance": 0.01596
}

Semantic roles & 50–950 ramp

primary
#24135B
secondary
#7D9337
accent
#E83FC1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #24135B

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

Preview Lab → · Contrast checker → · Palette generator →

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