#24023B#24023B

#24023B is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.8% C 0.102 H 306.5°. Best body text is #FFFFFF at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#24023B
RGBrgb(36, 2, 59)
HSLhsl(276, 93%, 12%)
HSVhsv(276, 97%, 23%)
CMYKcmyk(39%, 96.6%, 0%, 76.9%)
CIE-LABlab(6.63, 28.92, -28.54)
CIE-LCHlch(6.63, 40.64, 315.38°)
OKLaboklab(20.8% 0.0605 -0.0818)
OKLCHoklch(20.8% 0.102 306.5)
XYZxyz(1.5385, 0.7343, 4.1975)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24023B #193B02
analogous
#07023B #24023B #3B0236
triadic
#24023B #3B2402 #023B24
tetradic
#24023B #3B0702 #193B02 #02363B
square
#24023B #3B0702 #193B02 #02363B
split-complementary
#24023B #363B02 #023B07
monochromatic
#12011E #12011E #24023B #480476 #6C06B1

Accessibility & contrast

On white

18.31
#24023B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#24023B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24023B
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24023B#FFFFFF#000000##FFFFFF
##24023B1.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143C
Deuteranopia (green-blind)
#00153A
Tritanopia (blue-blind)
#20111F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #24023b;
/* rgb */ color: rgb(36, 2, 59);
/* oklch */ color: oklch(20.8% 0.102 306.5);
Tailwind
colors: {
  custom: {
    50: '#624771',
    500: '#24023b',
    950: '#000000',
  },
}
SCSS
$custom: #24023b;
$custom-light: #624771;
$custom-dark: #000000;
JSON
{
  "hex": "#24023b",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 59
  },
  "hsl": {
    "h": 275.789,
    "s": 93.443,
    "l": 11.961
  },
  "oklch": {
    "l": 0.208,
    "c": 0.10176,
    "h": 306.5
  },
  "luminance": 0.00734
}

Semantic roles & 50–950 ramp

primary
#24023B
secondary
#437E1A
accent
#FF297F
background
#F6F4F6
surface
#EBE6EC
border
#C6C2C7
text
#050008
muted
#7A777B

Preview Lab

Preview with #24023B

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

Preview Lab → · Contrast checker → · Palette generator →

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