#24156A#24156A

#24156A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.137 H 281.2°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#24156A
RGBrgb(36, 21, 106)
HSLhsl(251, 67%, 25%)
HSVhsv(251, 80%, 42%)
CMYKcmyk(66%, 80.2%, 0%, 58.4%)
CIE-LABlab(15.23, 33.24, -46.66)
CIE-LCHlch(15.23, 57.29, 305.46°)
OKLaboklab(28.4% 0.0267 -0.1346)
OKLCHoklch(28.4% 0.137 281.2)
XYZxyz(3.5964, 1.9517, 13.8201)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24156A #5B6A15
analogous
#15316A #24156A #4E156A
triadic
#24156A #6A2415 #156A24
tetradic
#24156A #6A1531 #5B6A15 #156A4E
square
#24156A #6A1531 #5B6A15 #156A4E
split-complementary
#24156A #6A4E15 #316A15
monochromatic
#09051A #130B37 #24156A #351F9D #4729D0

Accessibility & contrast

On white

15.10
#24156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#24156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24156A
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24156A#FFFFFF#000000##FFFFFF
##24156A1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #24156a;
/* rgb */ color: rgb(36, 21, 106);
/* oklch */ color: oklch(28.4% 0.137 281.2);
Tailwind
colors: {
  custom: {
    50: '#695596',
    500: '#24156a',
    950: '#000000',
  },
}
SCSS
$custom: #24156a;
$custom-light: #695596;
$custom-dark: #000000;
JSON
{
  "hex": "#24156a",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 250.588,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28395,
    "c": 0.13725,
    "h": 281.2
  },
  "luminance": 0.01952
}

Semantic roles & 50–950 ramp

primary
#24156A
secondary
#8FA13A
accent
#EA3ECC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #24156A

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

Preview Lab → · Contrast checker → · Palette generator →

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