#240023#240023

#240023 is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.2% C 0.083 H 329.5°. Best body text is #FFFFFF at 19.10:1 contrast (WCAG AA passes).

Color values

HEX#240023
RGBrgb(36, 0, 35)
HSLhsl(302, 100%, 7%)
HSVhsv(302, 100%, 14%)
CMYKcmyk(0%, 100%, 2.8%, 85.9%)
CIE-LABlab(4.48, 22.38, -13.99)
CIE-LCHlch(4.48, 26.39, 328.00°)
OKLaboklab(18.19% 0.0716 -0.0421)
OKLCHoklch(18.19% 0.083 329.5)
XYZxyz(1.0309, 0.4965, 1.6313)
Luminance0.0050 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240023 #002401
analogous
#130024 #240023 #240011
triadic
#240023 #232400 #002324
tetradic
#240023 #241300 #002401 #001124
square
#240023 #241300 #002401 #001124
split-complementary
#240023 #112400 #002413
monochromatic
#1F001E #1F001E #240023 #61005F #9E009A

Accessibility & contrast

On white

19.10
#240023 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#240023 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240023
19.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240023#FFFFFF#000000##FFFFFF
##2400231.0019.101.1019.10
#FFFFFF19.101.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C24
Deuteranopia (green-blind)
#091122
Tritanopia (blue-blind)
#260410
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #240023;
/* rgb */ color: rgb(36, 0, 35);
/* oklch */ color: oklch(18.2% 0.083 329.5);
Tailwind
colors: {
  custom: {
    50: '#60465e',
    500: '#240023',
    950: '#000000',
  },
}
SCSS
$custom: #240023;
$custom-light: #60465e;
$custom-dark: #000000;
JSON
{
  "hex": "#240023",
  "rgb": {
    "r": 36,
    "g": 0,
    "b": 35
  },
  "hsl": {
    "h": 301.667,
    "s": 100,
    "l": 7.059
  },
  "oklch": {
    "l": 0.18185,
    "c": 0.08309,
    "h": 329.5
  },
  "luminance": 0.00496
}

Semantic roles & 50–950 ramp

primary
#240023
secondary
#136D16
accent
#FF2F29
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#050004
muted
#797679

Preview Lab

Preview with #240023

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

Preview Lab → · Contrast checker → · Palette generator →

#240023 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva