#040800#040800

#040800 is a very dark, muted yellow-green. Relative luminance 0.002; OKLCH L 12.4% C 0.032 H 126.6°. Best body text is #FFFFFF at 20.20:1 contrast (WCAG AA passes).

Color values

HEX#040800
RGBrgb(4, 8, 0)
HSLhsl(90, 100%, 2%)
HSVhsv(90, 100%, 3%)
CMYKcmyk(50%, 0%, 100%, 96.9%)
CIE-LABlab(1.80, -2.16, 2.66)
CIE-LCHlch(1.80, 3.43, 129.08°)
OKLaboklab(12.37% -0.0189 0.0255)
OKLCHoklch(12.37% 0.032 126.6)
XYZxyz(0.1369, 0.1995, 0.0313)
Luminance0.0020 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040800 #040008
analogous
#080800 #040800 #000800
triadic
#040800 #000408 #080004
tetradic
#040800 #000808 #040008 #080000
square
#040800 #000808 #040008 #080000
split-complementary
#040800 #000008 #080008
monochromatic
#0F1F00 #0F1F00 #0F1F00 #234500 #418200

Accessibility & contrast

On white

20.20
#040800 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040800
20.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040800#FFFFFF#000000##FFFFFF
##0408001.0020.201.0420.20
#FFFFFF20.201.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#090700
Deuteranopia (green-blind)
#080700
Tritanopia (blue-blind)
#040706
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #040800;
/* rgb */ color: rgb(4, 8, 0);
/* oklch */ color: oklch(12.4% 0.032 126.6);
Tailwind
colors: {
  custom: {
    50: '#484a47',
    500: '#040800',
    950: '#000000',
  },
}
SCSS
$custom: #040800;
$custom-light: #484a47;
$custom-dark: #000000;
JSON
{
  "hex": "#040800",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 0
  },
  "hsl": {
    "h": 90,
    "s": 100,
    "l": 1.569
  },
  "oklch": {
    "l": 0.12371,
    "c": 0.03174,
    "h": 126.6
  },
  "luminance": 0.00199
}

Semantic roles & 50–950 ramp

primary
#040800
secondary
#320F55
accent
#29FF94
background
#F4F4F3
surface
#E6E7E5
border
#C2C3C1
text
#000100
muted
#777777

Preview Lab

Preview with #040800

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

Preview Lab → · Contrast checker → · Palette generator →

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