#08040D#08040D

#08040D is a very dark, muted violet. Relative luminance 0.002; OKLCH L 12.1% C 0.025 H 306.9°. Best body text is #FFFFFF at 20.32:1 contrast (WCAG AA passes).

Color values

HEX#08040D
RGBrgb(8, 4, 13)
HSLhsl(267, 53%, 3%)
HSVhsv(267, 69%, 5%)
CMYKcmyk(38.5%, 69.2%, 0%, 94.9%)
CIE-LABlab(1.51, 2.33, -3.14)
CIE-LCHlch(1.51, 3.91, 306.67°)
OKLaboklab(12.13% 0.0149 -0.0199)
OKLCHoklch(12.13% 0.025 306.9)
XYZxyz(0.2162, 0.1675, 0.4016)
Luminance0.0017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08040D #090D04
analogous
#04040D #08040D #0C040D
triadic
#08040D #0D0804 #040D08
tetradic
#08040D #0D0404 #090D04 #040D0C
square
#08040D #0D0404 #090D04 #040D0C
split-complementary
#08040D #0D0C04 #040D04
monochromatic
#0E0717 #0E0717 #0E0717 #25123C #42216B

Accessibility & contrast

On white

20.32
#08040D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#08040D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08040D
20.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08040D#FFFFFF#000000##FFFFFF
##08040D1.0020.321.0320.32
#FFFFFF20.321.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03050D
Deuteranopia (green-blind)
#03060D
Tritanopia (blue-blind)
#070507
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #08040d;
/* rgb */ color: rgb(8, 4, 13);
/* oklch */ color: oklch(12.1% 0.025 306.9);
Tailwind
colors: {
  custom: {
    50: '#4a484d',
    500: '#08040d',
    950: '#000000',
  },
}
SCSS
$custom: #08040d;
$custom-light: #4a484d;
$custom-dark: #000000;
JSON
{
  "hex": "#08040d",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 13
  },
  "hsl": {
    "h": 266.667,
    "s": 52.941,
    "l": 3.333
  },
  "oklch": {
    "l": 0.12134,
    "c": 0.02485,
    "h": 306.9
  },
  "luminance": 0.00168
}

Semantic roles & 50–950 ramp

primary
#08040D
secondary
#394B22
accent
#DC4B9C
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010001
muted
#777777

Preview Lab

Preview with #08040D

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

Preview Lab → · Contrast checker → · Palette generator →

#08040D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva