#08040B#08040B

#08040B is a very dark, muted violet. Relative luminance 0.002; OKLCH L 12.0% C 0.021 H 312.6°. Best body text is #FFFFFF at 20.34:1 contrast (WCAG AA passes).

Color values

HEX#08040B
RGBrgb(8, 4, 11)
HSLhsl(274, 47%, 3%)
HSVhsv(274, 64%, 4%)
CMYKcmyk(27.3%, 63.6%, 0%, 95.7%)
CIE-LABlab(1.47, 2.03, -2.29)
CIE-LCHlch(1.47, 3.06, 311.49°)
OKLaboklab(11.99% 0.0143 -0.0155)
OKLCHoklch(11.99% 0.021 312.6)
XYZxyz(0.2040, 0.1626, 0.3372)
Luminance0.0016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08040B #070B04
analogous
#04040B #08040B #0B040A
triadic
#08040B #0B0804 #040B08
tetradic
#08040B #0B0404 #070B04 #040A0B
square
#08040B #0B0404 #070B04 #040A0B
split-complementary
#08040B #0A0B04 #040B04
monochromatic
#100816 #100816 #100816 #291438 #492565

Accessibility & contrast

On white

20.34
#08040B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08040B
20.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08040B#FFFFFF#000000##FFFFFF
##08040B1.0020.341.0320.34
#FFFFFF20.341.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03050B
Deuteranopia (green-blind)
#04050B
Tritanopia (blue-blind)
#080506
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #08040b;
/* rgb */ color: rgb(8, 4, 11);
/* oklch */ color: oklch(12.0% 0.021 312.6);
Tailwind
colors: {
  custom: {
    50: '#4a484c',
    500: '#08040b',
    950: '#000000',
  },
}
SCSS
$custom: #08040b;
$custom-light: #4a484c;
$custom-dark: #000000;
JSON
{
  "hex": "#08040b",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 11
  },
  "hsl": {
    "h": 274.286,
    "s": 46.667,
    "l": 2.941
  },
  "oklch": {
    "l": 0.11987,
    "c": 0.0211,
    "h": 312.6
  },
  "luminance": 0.00163
}

Semantic roles & 50–950 ramp

primary
#08040B
secondary
#334724
accent
#D6518A
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010001
muted
#777777

Preview Lab

Preview with #08040B

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

Preview Lab → · Contrast checker → · Palette generator →

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