#24156D#24156D

#24156D is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.141 H 280.5°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#24156D
RGBrgb(36, 21, 109)
HSLhsl(250, 68%, 25%)
HSVhsv(250, 81%, 43%)
CMYKcmyk(67%, 80.7%, 0%, 57.3%)
CIE-LABlab(15.57, 34.23, -48.07)
CIE-LCHlch(15.57, 59.01, 305.45°)
OKLaboklab(28.73% 0.0258 -0.1387)
OKLCHoklch(28.73% 0.141 280.5)
XYZxyz(3.7552, 2.0152, 14.6561)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24156D #5E6D15
analogous
#15326D #24156D #50156D
triadic
#24156D #6D2415 #156D24
tetradic
#24156D #6D1532 #5E6D15 #156D50
square
#24156D #6D1532 #5E6D15 #156D50
split-complementary
#24156D #6D5015 #326D15
monochromatic
#08051A #130B3A #24156D #351FA0 #4629D4

Accessibility & contrast

On white

14.97
#24156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24156D
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24156D#FFFFFF#000000##FFFFFF
##24156D1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #24156d;
/* rgb */ color: rgb(36, 21, 109);
/* oklch */ color: oklch(28.7% 0.141 280.5);
Tailwind
colors: {
  custom: {
    50: '#6a5598',
    500: '#24156d',
    950: '#000000',
  },
}
SCSS
$custom: #24156d;
$custom-light: #6a5598;
$custom-dark: #000000;
JSON
{
  "hex": "#24156d",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 250.227,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.2873,
    "c": 0.14112,
    "h": 280.5
  },
  "luminance": 0.02016
}

Semantic roles & 50–950 ramp

primary
#24156D
secondary
#92A33A
accent
#EB3DCD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #24156D

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

Preview Lab → · Contrast checker → · Palette generator →

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