#08040E#08040E

#08040E is a very dark, muted violet. Relative luminance 0.002; OKLCH L 12.2% C 0.027 H 304.5°. Best body text is #FFFFFF at 20.31:1 contrast (WCAG AA passes).

Color values

HEX#08040E
RGBrgb(8, 4, 14)
HSLhsl(264, 56%, 4%)
HSVhsv(264, 71%, 5%)
CMYKcmyk(42.9%, 71.4%, 0%, 94.5%)
CIE-LABlab(1.54, 2.50, -3.59)
CIE-LCHlch(1.54, 4.38, 304.83°)
OKLaboklab(12.21% 0.0152 -0.022)
OKLCHoklch(12.21% 0.027 304.5)
XYZxyz(0.2228, 0.1702, 0.4365)
Luminance0.0017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08040E #0A0E04
analogous
#04050E #08040E #0D040E
triadic
#08040E #0E0804 #040E08
tetradic
#08040E #0E0405 #0A0E04 #040E0D
square
#08040E #0E0405 #0A0E04 #040E0D
split-complementary
#08040E #0E0D04 #050E04
monochromatic
#0E0718 #0E0718 #0E0718 #23123E #3E1F6D

Accessibility & contrast

On white

20.31
#08040E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08040E
20.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08040E#FFFFFF#000000##FFFFFF
##08040E1.0020.311.0320.31
#FFFFFF20.311.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #08040e;
/* rgb */ color: rgb(8, 4, 14);
/* oklch */ color: oklch(12.2% 0.027 304.5);
Tailwind
colors: {
  custom: {
    50: '#4a484d',
    500: '#08040e',
    950: '#000000',
  },
}
SCSS
$custom: #08040e;
$custom-light: #4a484d;
$custom-dark: #000000;
JSON
{
  "hex": "#08040e",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 14
  },
  "hsl": {
    "h": 264,
    "s": 55.556,
    "l": 3.529
  },
  "oklch": {
    "l": 0.12212,
    "c": 0.02676,
    "h": 304.5
  },
  "luminance": 0.0017
}

Semantic roles & 50–950 ramp

primary
#08040E
secondary
#3B4C22
accent
#DF49A3
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010001
muted
#777777

Preview Lab

Preview with #08040E

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

Preview Lab → · Contrast checker → · Palette generator →

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