#24073F#24073F

#24073F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.098 H 302.2°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#24073F
RGBrgb(36, 7, 63)
HSLhsl(271, 80%, 14%)
HSVhsv(271, 89%, 25%)
CMYKcmyk(42.9%, 88.9%, 0%, 75.3%)
CIE-LABlab(8.00, 27.31, -29.19)
CIE-LCHlch(8.00, 39.97, 313.10°)
OKLaboklab(21.94% 0.0525 -0.0833)
OKLCHoklch(21.94% 0.098 302.2)
XYZxyz(1.7005, 0.8859, 4.7831)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24073F #223F07
analogous
#08073F #24073F #3F073E
triadic
#24073F #3F2407 #073F24
tetradic
#24073F #3F0807 #223F07 #073E3F
square
#24073F #3F0807 #223F07 #073E3F
split-complementary
#24073F #3E3F07 #073F08
monochromatic
#10031C #10031C #24073F #430D76 #6313AD

Accessibility & contrast

On white

17.84
#24073F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#24073F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24073F
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24073F#FFFFFF#000000##FFFFFF
##24073F1.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001741
Deuteranopia (green-blind)
#00173E
Tritanopia (blue-blind)
#1E1623
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #24073f;
/* rgb */ color: rgb(36, 7, 63);
/* oklch */ color: oklch(21.9% 0.098 302.2);
Tailwind
colors: {
  custom: {
    50: '#624a75',
    500: '#24073f',
    950: '#000000',
  },
}
SCSS
$custom: #24073f;
$custom-light: #624a75;
$custom-dark: #000000;
JSON
{
  "hex": "#24073f",
  "rgb": {
    "r": 36,
    "g": 7,
    "b": 63
  },
  "hsl": {
    "h": 271.071,
    "s": 80,
    "l": 13.725
  },
  "oklch": {
    "l": 0.21936,
    "c": 0.09849,
    "h": 302.2
  },
  "luminance": 0.00886
}

Semantic roles & 50–950 ramp

primary
#24073F
secondary
#4F7E24
accent
#F63190
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #24073F

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

Preview Lab → · Contrast checker → · Palette generator →

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