#24073E#24073E

#24073E is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.097 H 302.9°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#24073E
RGBrgb(36, 7, 62)
HSLhsl(272, 80%, 14%)
HSVhsv(272, 89%, 24%)
CMYKcmyk(41.9%, 88.7%, 0%, 75.7%)
CIE-LABlab(7.90, 27.03, -28.63)
CIE-LCHlch(7.90, 39.38, 313.35°)
OKLaboklab(21.83% 0.0528 -0.0817)
OKLCHoklch(21.83% 0.097 302.9)
XYZxyz(1.6728, 0.8748, 4.6372)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24073E #213E07
analogous
#08073E #24073E #3E073C
triadic
#24073E #3E2407 #073E24
tetradic
#24073E #3E0807 #213E07 #073C3E
square
#24073E #3E0807 #213E07 #073C3E
split-complementary
#24073E #3C3E07 #073E08
monochromatic
#10031B #10031B #24073E #440D75 #6413AC

Accessibility & contrast

On white

17.87
#24073E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24073E
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24073E#FFFFFF#000000##FFFFFF
##24073E1.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001740
Deuteranopia (green-blind)
#00173D
Tritanopia (blue-blind)
#1F1522
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #24073e;
/* rgb */ color: rgb(36, 7, 62);
/* oklch */ color: oklch(21.8% 0.097 302.9);
Tailwind
colors: {
  custom: {
    50: '#624a74',
    500: '#24073e',
    950: '#000000',
  },
}
SCSS
$custom: #24073e;
$custom-light: #624a74;
$custom-dark: #000000;
JSON
{
  "hex": "#24073e",
  "rgb": {
    "r": 36,
    "g": 7,
    "b": 62
  },
  "hsl": {
    "h": 271.636,
    "s": 79.71,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21835,
    "c": 0.0973,
    "h": 302.9
  },
  "luminance": 0.00875
}

Semantic roles & 50–950 ramp

primary
#24073E
secondary
#4E7D24
accent
#F6328F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #24073E

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

Preview Lab → · Contrast checker → · Palette generator →

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