#040804#040804

#040804 is a very dark, near-neutral green. Relative luminance 0.002; OKLCH L 12.6% C 0.015 H 144.6°. Best body text is #FFFFFF at 20.16:1 contrast (WCAG AA passes).

Color values

HEX#040804
RGBrgb(4, 8, 4)
HSLhsl(120, 33%, 2%)
HSVhsv(120, 50%, 3%)
CMYKcmyk(50%, 0%, 50%, 96.9%)
CIE-LABlab(1.88, -1.60, 1.14)
CIE-LCHlch(1.88, 1.97, 144.45°)
OKLaboklab(12.61% -0.0123 0.0088)
OKLCHoklch(12.61% 0.015 144.6)
XYZxyz(0.1588, 0.2082, 0.1467)
Luminance0.0021 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040804 #080408
analogous
#060804 #040804 #040806
triadic
#040804 #040408 #080404
tetradic
#040804 #040608 #080408 #080604
square
#040804 #040608 #080408 #080604
split-complementary
#040804 #060408 #080406
monochromatic
#0A140A #0A140A #0A140A #183118 #2D5A2D

Accessibility & contrast

On white

20.16
#040804 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#040804 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040804
20.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040804#FFFFFF#000000##FFFFFF
##0408041.0020.161.0420.16
#FFFFFF20.161.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#080704
Deuteranopia (green-blind)
#070704
Tritanopia (blue-blind)
#040807
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #040804;
/* rgb */ color: rgb(4, 8, 4);
/* oklch */ color: oklch(12.6% 0.015 144.6);
Tailwind
colors: {
  custom: {
    50: '#484a48',
    500: '#040804',
    950: '#000000',
  },
}
SCSS
$custom: #040804;
$custom-light: #484a48;
$custom-dark: #000000;
JSON
{
  "hex": "#040804",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 4
  },
  "hsl": {
    "h": 120,
    "s": 33.333,
    "l": 2.353
  },
  "oklch": {
    "l": 0.1261,
    "c": 0.01513,
    "h": 144.6
  },
  "luminance": 0.00208
}

Semantic roles & 50–950 ramp

primary
#040804
secondary
#402840
accent
#5EC9C9
background
#F4F4F4
surface
#E6E7E6
border
#C2C3C2
text
#000100
muted
#777777

Preview Lab

Preview with #040804

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

Preview Lab → · Contrast checker → · Palette generator →

#040804 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva