#040F04#040F04

#040F04 is a very dark, muted green. Relative luminance 0.004; OKLCH L 15.2% C 0.032 H 143.8°. Best body text is #FFFFFF at 19.53:1 contrast (WCAG AA passes).

Color values

HEX#040F04
RGBrgb(4, 15, 4)
HSLhsl(120, 58%, 4%)
HSVhsv(120, 73%, 6%)
CMYKcmyk(73.3%, 0%, 73.3%, 94.1%)
CIE-LABlab(3.40, -4.70, 3.36)
CIE-LCHlch(3.40, 5.78, 144.45°)
OKLaboklab(15.23% -0.0256 0.0187)
OKLCHoklch(15.23% 0.032 143.8)
XYZxyz(0.2428, 0.3762, 0.1747)
Luminance0.0038 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F04 #0F040F
analogous
#090F04 #040F04 #040F09
triadic
#040F04 #04040F #0F0404
tetradic
#040F04 #04090F #0F040F #0F0904
square
#040F04 #04090F #0F040F #0F0904
split-complementary
#040F04 #09040F #0F0409
monochromatic
#061806 #061806 #061806 #113F11 #1E701E

Accessibility & contrast

On white

19.53
#040F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#040F04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040F04
19.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F04#FFFFFF#000000##FFFFFF
##040F041.0019.531.0819.53
#FFFFFF19.531.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F0D03
Deuteranopia (green-blind)
#0E0C05
Tritanopia (blue-blind)
#030E0C
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040f04;
/* rgb */ color: rgb(4, 15, 4);
/* oklch */ color: oklch(15.2% 0.032 143.8);
Tailwind
colors: {
  custom: {
    50: '#484e48',
    500: '#040f04',
    950: '#000000',
  },
}
SCSS
$custom: #040f04;
$custom-light: #484e48;
$custom-dark: #000000;
JSON
{
  "hex": "#040f04",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 4
  },
  "hsl": {
    "h": 120,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.15231,
    "c": 0.03174,
    "h": 143.8
  },
  "luminance": 0.00376
}

Semantic roles & 50–950 ramp

primary
#040F04
secondary
#4E214E
accent
#47E1E1
background
#F4F4F4
surface
#E6E7E6
border
#C2C3C2
text
#000100
muted
#777777

Preview Lab

Preview with #040F04

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

Preview Lab → · Contrast checker → · Palette generator →

#040F04 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva