#040404#040404

#040404 is a very dark, near-neutral grey. Relative luminance 0.001; OKLCH L 10.7% C 0.000 H 0.0°. Best body text is #FFFFFF at 20.50:1 contrast (WCAG AA passes).

Color values

HEX#040404
RGBrgb(4, 4, 4)
HSLhsl(0, 0%, 2%)
HSVhsv(0, 0%, 2%)
CMYKcmyk(0%, 0%, 0%, 98.4%)
CIE-LABlab(1.10, 0.00, -0.00)
CIE-LCHlch(1.10, 0.00, 338.20°)
OKLaboklab(10.67% 0 0)
OKLCHoklch(10.67% 0 0)
XYZxyz(0.1154, 0.1214, 0.1322)
Luminance0.0012 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040404 #040404
analogous
#040404 #040404 #040404
triadic
#040404 #040404 #040404
tetradic
#040404 #040404 #040404 #040404
square
#040404 #040404 #040404 #040404
split-complementary
#040404 #040404 #040404
monochromatic
#0F0F0F #0F0F0F #0F0F0F #232323 #414141

Accessibility & contrast

On white

20.50
#040404 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#040404 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040404
20.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040404#FFFFFF#000000##FFFFFF
##0404041.0020.501.0220.50
#FFFFFF20.501.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#040404
Deuteranopia (green-blind)
#040404
Tritanopia (blue-blind)
#040404
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #040404;
/* rgb */ color: rgb(4, 4, 4);
/* oklch */ color: oklch(10.7% 0.000 0.0);
Tailwind
colors: {
  custom: {
    50: '#484848',
    500: '#040404',
    950: '#000000',
  },
}
SCSS
$custom: #040404;
$custom-light: #484848;
$custom-dark: #000000;
JSON
{
  "hex": "#040404",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 4
  },
  "hsl": {
    "h": 0,
    "s": 0,
    "l": 1.569
  },
  "oklch": {
    "l": 0.10668,
    "c": 0,
    "h": 0
  },
  "luminance": 0.00121
}

Semantic roles & 50–950 ramp

primary
#040404
secondary
#323232
accent
#A9A97E
background
#F4F4F4
surface
#E6E6E6
border
#C2C2C2
text
#000000
muted
#777777

Preview Lab

Preview with #040404

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

Preview Lab → · Contrast checker → · Palette generator →

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