#24124D#24124D

#24124D is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.102 H 291.1°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#24124D
RGBrgb(36, 18, 77)
HSLhsl(258, 62%, 19%)
HSVhsv(258, 77%, 30%)
CMYKcmyk(53.2%, 76.6%, 0%, 69.8%)
CIE-LABlab(11.58, 25.40, -33.18)
CIE-LCHlch(11.58, 41.79, 307.44°)
OKLaboklab(24.89% 0.0368 -0.0951)
OKLCHoklch(24.89% 0.102 291.1)
XYZxyz(2.2830, 1.3434, 7.1588)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24124D #3B4D12
analogous
#121D4D #24124D #41124D
triadic
#24124D #4D2412 #124D24
tetradic
#24124D #4D121D #3B4D12 #124D41
square
#24124D #4D121D #3B4D12 #124D41
split-complementary
#24124D #4D4112 #1D4D12
monochromatic
#0C0619 #0D061B #24124D #3B1E7F #5229B0

Accessibility & contrast

On white

16.55
#24124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#24124D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24124D
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24124D#FFFFFF#000000##FFFFFF
##24124D1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#001D4C
Tritanopia (blue-blind)
#17212E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #24124d;
/* rgb */ color: rgb(36, 18, 77);
/* oklch */ color: oklch(24.9% 0.102 291.1);
Tailwind
colors: {
  custom: {
    50: '#64517f',
    500: '#24124d',
    950: '#000000',
  },
}
SCSS
$custom: #24124d;
$custom-light: #64517f;
$custom-dark: #000000;
JSON
{
  "hex": "#24124d",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 258.305,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24888,
    "c": 0.10199,
    "h": 291.1
  },
  "luminance": 0.01344
}

Semantic roles & 50–950 ramp

primary
#24124D
secondary
#6D8635
accent
#E543B4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #24124D

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

Preview Lab → · Contrast checker → · Palette generator →

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