#24156C#24156C

#24156C is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.140 H 280.8°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#24156C
RGBrgb(36, 21, 108)
HSLhsl(250, 67%, 25%)
HSVhsv(250, 81%, 42%)
CMYKcmyk(66.7%, 80.6%, 0%, 57.6%)
CIE-LABlab(15.45, 33.90, -47.60)
CIE-LCHlch(15.45, 58.44, 305.46°)
OKLaboklab(28.62% 0.0261 -0.1374)
OKLCHoklch(28.62% 0.14 280.8)
XYZxyz(3.7016, 1.9938, 14.3742)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24156C #5D6C15
analogous
#15316C #24156C #4F156C
triadic
#24156C #6C2415 #156C24
tetradic
#24156C #6C1531 #5D6C15 #156C4F
square
#24156C #6C1531 #5D6C15 #156C4F
split-complementary
#24156C #6C4F15 #316C15
monochromatic
#09051A #130B39 #24156C #351F9F #4629D2

Accessibility & contrast

On white

15.01
#24156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#24156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24156C
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24156C#FFFFFF#000000##FFFFFF
##24156C1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00236A
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #24156c;
/* rgb */ color: rgb(36, 21, 108);
/* oklch */ color: oklch(28.6% 0.140 280.8);
Tailwind
colors: {
  custom: {
    50: '#6a5597',
    500: '#24156c',
    950: '#000000',
  },
}
SCSS
$custom: #24156c;
$custom-light: #6a5597;
$custom-dark: #000000;
JSON
{
  "hex": "#24156c",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 250.345,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28618,
    "c": 0.13984,
    "h": 280.8
  },
  "luminance": 0.01994
}

Semantic roles & 50–950 ramp

primary
#24156C
secondary
#91A33A
accent
#EA3DCD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #24156C

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

Preview Lab → · Contrast checker → · Palette generator →

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