#08040F#08040F

#08040F is a very dark, muted violet. Relative luminance 0.002; OKLCH L 12.3% C 0.029 H 302.5°. Best body text is #FFFFFF at 20.30:1 contrast (WCAG AA passes).

Color values

HEX#08040F
RGBrgb(8, 4, 15)
HSLhsl(262, 58%, 4%)
HSVhsv(262, 73%, 6%)
CMYKcmyk(46.7%, 73.3%, 0%, 94.1%)
CIE-LABlab(1.56, 2.68, -4.07)
CIE-LCHlch(1.56, 4.88, 303.35°)
OKLaboklab(12.29% 0.0154 -0.0242)
OKLCHoklch(12.29% 0.029 302.5)
XYZxyz(0.2298, 0.1729, 0.4731)
Luminance0.0017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08040F #0B0F04
analogous
#04050F #08040F #0D040F
triadic
#08040F #0F0804 #040F08
tetradic
#08040F #0F0405 #0B0F04 #040F0D
square
#08040F #0F0405 #0B0F04 #040F0D
split-complementary
#08040F #0F0D04 #050F04
monochromatic
#0D0618 #0D0618 #0D0618 #22113F #3C1E70

Accessibility & contrast

On white

20.30
#08040F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08040F
20.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08040F#FFFFFF#000000##FFFFFF
##08040F1.0020.301.0320.30
#FFFFFF20.301.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02060F
Deuteranopia (green-blind)
#03060F
Tritanopia (blue-blind)
#070508
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #08040f;
/* rgb */ color: rgb(8, 4, 15);
/* oklch */ color: oklch(12.3% 0.029 302.5);
Tailwind
colors: {
  custom: {
    50: '#4a484e',
    500: '#08040f',
    950: '#000000',
  },
}
SCSS
$custom: #08040f;
$custom-light: #4a484e;
$custom-dark: #000000;
JSON
{
  "hex": "#08040f",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 15
  },
  "hsl": {
    "h": 261.818,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.12293,
    "c": 0.02866,
    "h": 302.5
  },
  "luminance": 0.00173
}

Semantic roles & 50–950 ramp

primary
#08040F
secondary
#3E4E21
accent
#E147A9
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010001
muted
#777777

Preview Lab

Preview with #08040F

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

Preview Lab → · Contrast checker → · Palette generator →

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