#24124B#24124B

#24124B is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.099 H 292.0°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#24124B
RGBrgb(36, 18, 75)
HSLhsl(259, 61%, 18%)
HSVhsv(259, 76%, 29%)
CMYKcmyk(52%, 76%, 0%, 70.6%)
CIE-LABlab(11.38, 24.75, -32.11)
CIE-LCHlch(11.38, 40.54, 307.63°)
OKLaboklab(24.69% 0.0372 -0.092)
OKLCHoklch(24.69% 0.099 292)
XYZxyz(2.2135, 1.3156, 6.7926)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24124B #394B12
analogous
#121C4B #24124B #40124B
triadic
#24124B #4B2412 #124B24
tetradic
#24124B #4B121C #394B12 #124B40
square
#24124B #4B121C #394B12 #124B40
split-complementary
#24124B #4B4012 #1C4B12
monochromatic
#0C0619 #0C061A #24124B #3C1E7C #532AAE

Accessibility & contrast

On white

16.62
#24124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#24124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24124B
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24124B#FFFFFF#000000##FFFFFF
##24124B1.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001D4A
Tritanopia (blue-blind)
#18202C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #24124b;
/* rgb */ color: rgb(36, 18, 75);
/* oklch */ color: oklch(24.7% 0.099 292.0);
Tailwind
colors: {
  custom: {
    50: '#63517e',
    500: '#24124b',
    950: '#000000',
  },
}
SCSS
$custom: #24124b;
$custom-light: #63517e;
$custom-dark: #000000;
JSON
{
  "hex": "#24124b",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 258.947,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24691,
    "c": 0.09921,
    "h": 292
  },
  "luminance": 0.01316
}

Semantic roles & 50–950 ramp

primary
#24124B
secondary
#6B8435
accent
#E443B2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #24124B

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

Preview Lab → · Contrast checker → · Palette generator →

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