#24043F#24043F

#24043F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.5% C 0.103 H 303.1°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#24043F
RGBrgb(36, 4, 63)
HSLhsl(273, 88%, 13%)
HSVhsv(273, 94%, 25%)
CMYKcmyk(42.9%, 93.7%, 0%, 75.3%)
CIE-LABlab(7.41, 29.01, -30.15)
CIE-LCHlch(7.41, 41.84, 313.90°)
OKLaboklab(21.52% 0.0562 -0.0862)
OKLCHoklch(21.52% 0.103 303.1)
XYZxyz(1.6680, 0.8208, 4.7722)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24043F #1F3F04
analogous
#06043F #24043F #3F043C
triadic
#24043F #3F2404 #043F24
tetradic
#24043F #3F0604 #1F3F04 #043C3F
square
#24043F #3F0604 #1F3F04 #043C3F
split-complementary
#24043F #3C3F04 #043F06
monochromatic
#10021D #10021D #24043F #450879 #660BB2

Accessibility & contrast

On white

18.04
#24043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24043F
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24043F#FFFFFF#000000##FFFFFF
##24043F1.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001641
Deuteranopia (green-blind)
#00163E
Tritanopia (blue-blind)
#1E1422
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #24043f;
/* rgb */ color: rgb(36, 4, 63);
/* oklch */ color: oklch(21.5% 0.103 303.1);
Tailwind
colors: {
  custom: {
    50: '#634875',
    500: '#24043f',
    950: '#000000',
  },
}
SCSS
$custom: #24043f;
$custom-light: #634875;
$custom-dark: #000000;
JSON
{
  "hex": "#24043f",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 272.542,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.21517,
    "c": 0.10287,
    "h": 303.1
  },
  "luminance": 0.00821
}

Semantic roles & 50–950 ramp

primary
#24043F
secondary
#4B801E
accent
#FE2A8B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #24043F

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

Preview Lab → · Contrast checker → · Palette generator →

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