#24023A#24023A

#24023A is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.7% C 0.101 H 307.2°. Best body text is #FFFFFF at 18.34:1 contrast (WCAG AA passes).

Color values

HEX#24023A
RGBrgb(36, 2, 58)
HSLhsl(276, 93%, 12%)
HSVhsv(276, 97%, 23%)
CMYKcmyk(37.9%, 96.6%, 0%, 77.3%)
CIE-LABlab(6.54, 28.62, -27.97)
CIE-LCHlch(6.54, 40.01, 315.66°)
OKLaboklab(20.7% 0.061 -0.0802)
OKLCHoklch(20.7% 0.101 307.2)
XYZxyz(1.5128, 0.7240, 4.0622)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24023A #183A02
analogous
#08023A #24023A #3A0234
triadic
#24023A #3A2402 #023A24
tetradic
#24023A #3A0802 #183A02 #02343A
square
#24023A #3A0802 #183A02 #02343A
split-complementary
#24023A #343A02 #023A08
monochromatic
#12011E #12011E #24023A #490475 #6D06B0

Accessibility & contrast

On white

18.34
#24023A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#24023A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24023A
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24023A#FFFFFF#000000##FFFFFF
##24023A1.0018.341.1418.34
#FFFFFF18.341.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133B
Deuteranopia (green-blind)
#001539
Tritanopia (blue-blind)
#20111F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #24023a;
/* rgb */ color: rgb(36, 2, 58);
/* oklch */ color: oklch(20.7% 0.101 307.2);
Tailwind
colors: {
  custom: {
    50: '#624771',
    500: '#24023a',
    950: '#000000',
  },
}
SCSS
$custom: #24023a;
$custom-light: #624771;
$custom-dark: #000000;
JSON
{
  "hex": "#24023a",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 58
  },
  "hsl": {
    "h": 276.429,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20695,
    "c": 0.10071,
    "h": 307.2
  },
  "luminance": 0.00724
}

Semantic roles & 50–950 ramp

primary
#24023A
secondary
#417D1A
accent
#FF297D
background
#F6F4F6
surface
#EBE6EC
border
#C6C2C7
text
#050007
muted
#7A777A

Preview Lab

Preview with #24023A

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

Preview Lab → · Contrast checker → · Palette generator →

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