#24156B#24156B

#24156B is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.139 H 281.0°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#24156B
RGBrgb(36, 21, 107)
HSLhsl(250, 67%, 25%)
HSVhsv(250, 80%, 42%)
CMYKcmyk(66.4%, 80.4%, 0%, 58%)
CIE-LABlab(15.34, 33.57, -47.13)
CIE-LCHlch(15.34, 57.87, 305.46°)
OKLaboklab(28.51% 0.0264 -0.136)
OKLCHoklch(28.51% 0.139 281)
XYZxyz(3.6487, 1.9727, 14.0956)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24156B #5C6B15
analogous
#15316B #24156B #4F156B
triadic
#24156B #6B2415 #156B24
tetradic
#24156B #6B1531 #5C6B15 #156B4F
square
#24156B #6B1531 #5C6B15 #156B4F
split-complementary
#24156B #6B4F15 #316B15
monochromatic
#09051A #130B38 #24156B #351F9E #4629D1

Accessibility & contrast

On white

15.06
#24156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24156B
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24156B#FFFFFF#000000##FFFFFF
##24156B1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24156b;
/* rgb */ color: rgb(36, 21, 107);
/* oklch */ color: oklch(28.5% 0.139 281.0);
Tailwind
colors: {
  custom: {
    50: '#6a5596',
    500: '#24156b',
    950: '#000000',
  },
}
SCSS
$custom: #24156b;
$custom-light: #6a5596;
$custom-dark: #000000;
JSON
{
  "hex": "#24156b",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 250.465,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28507,
    "c": 0.13855,
    "h": 281
  },
  "luminance": 0.01973
}

Semantic roles & 50–950 ramp

primary
#24156B
secondary
#90A23A
accent
#EA3ECC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #24156B

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

Preview Lab → · Contrast checker → · Palette generator →

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