#24156F#24156F

#24156F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.144 H 280.1°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#24156F
RGBrgb(36, 21, 111)
HSLhsl(250, 68%, 26%)
HSVhsv(250, 81%, 44%)
CMYKcmyk(67.6%, 81.1%, 0%, 56.5%)
CIE-LABlab(15.79, 34.89, -49.00)
CIE-LCHlch(15.79, 60.15, 305.45°)
OKLaboklab(28.96% 0.0252 -0.1414)
OKLCHoklch(28.96% 0.144 280.1)
XYZxyz(3.8641, 2.0588, 15.2296)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24156F #606F15
analogous
#15336F #24156F #51156F
triadic
#24156F #6F2415 #156F24
tetradic
#24156F #6F1533 #606F15 #156F51
square
#24156F #6F1533 #606F15 #156F51
split-complementary
#24156F #6F5115 #336F15
monochromatic
#08051A #130B3C #24156F #351FA2 #4528D6

Accessibility & contrast

On white

14.87
#24156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#24156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24156F
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24156F#FFFFFF#000000##FFFFFF
##24156F1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #24156f;
/* rgb */ color: rgb(36, 21, 111);
/* oklch */ color: oklch(29.0% 0.144 280.1);
Tailwind
colors: {
  custom: {
    50: '#6a5599',
    500: '#24156f',
    950: '#000000',
  },
}
SCSS
$custom: #24156f;
$custom-light: #6a5599;
$custom-dark: #000000;
JSON
{
  "hex": "#24156f",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 250,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28956,
    "c": 0.14368,
    "h": 280.1
  },
  "luminance": 0.02059
}

Semantic roles & 50–950 ramp

primary
#24156F
secondary
#94A53A
accent
#EB3DCE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #24156F

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

Preview Lab → · Contrast checker → · Palette generator →

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