#24043B#24043B

#24043B is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.098 H 305.9°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#24043B
RGBrgb(36, 4, 59)
HSLhsl(275, 87%, 12%)
HSVhsv(275, 93%, 23%)
CMYKcmyk(39%, 93.2%, 0%, 76.9%)
CIE-LABlab(7.02, 27.83, -27.90)
CIE-LCHlch(7.02, 39.41, 314.92°)
OKLaboklab(21.1% 0.0577 -0.0797)
OKLCHoklch(21.1% 0.098 305.9)
XYZxyz(1.5602, 0.7777, 4.2047)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24043B #1B3B04
analogous
#08043B #24043B #3B0437
triadic
#24043B #3B2404 #043B24
tetradic
#24043B #3B0804 #1B3B04 #04373B
square
#24043B #3B0804 #1B3B04 #04373B
split-complementary
#24043B #373B04 #043B08
monochromatic
#11021D #11021D #24043B #470874 #6A0CAE

Accessibility & contrast

On white

18.17
#24043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#24043B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24043B
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24043B#FFFFFF#000000##FFFFFF
##24043B1.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153C
Deuteranopia (green-blind)
#00163A
Tritanopia (blue-blind)
#201220
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #24043b;
/* rgb */ color: rgb(36, 4, 59);
/* oklch */ color: oklch(21.1% 0.098 305.9);
Tailwind
colors: {
  custom: {
    50: '#624871',
    500: '#24043b',
    950: '#000000',
  },
}
SCSS
$custom: #24043b;
$custom-light: #624871;
$custom-dark: #000000;
JSON
{
  "hex": "#24043b",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 274.909,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21101,
    "c": 0.09844,
    "h": 305.9
  },
  "luminance": 0.00778
}

Semantic roles & 50–950 ramp

primary
#24043B
secondary
#467D1E
accent
#FD2A83
background
#F6F4F6
surface
#EBE6EC
border
#C6C2C7
text
#050108
muted
#7A777B

Preview Lab

Preview with #24043B

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

Preview Lab → · Contrast checker → · Palette generator →

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