#040D08#040D08

#040D08 is a very dark, near-neutral green. Relative luminance 0.003; OKLCH L 14.7% C 0.019 H 161.7°. Best body text is #FFFFFF at 19.70:1 contrast (WCAG AA passes).

Color values

HEX#040D08
RGBrgb(4, 13, 8)
HSLhsl(147, 53%, 3%)
HSVhsv(147, 69%, 5%)
CMYKcmyk(69.2%, 0%, 38.5%, 94.9%)
CIE-LABlab(2.99, -3.15, 1.14)
CIE-LCHlch(2.99, 3.35, 160.17°)
OKLaboklab(14.67% -0.0185 0.0061)
OKLCHoklch(14.67% 0.019 161.7)
XYZxyz(0.2378, 0.3312, 0.2811)
Luminance0.0033 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D08 #0D0409
analogous
#040D04 #040D08 #040D0C
triadic
#040D08 #08040D #0D0804
tetradic
#040D08 #04040D #0D0409 #0D0C04
square
#040D08 #04040D #0D0409 #0D0C04
split-complementary
#040D08 #0C040D #0D0404
monochromatic
#07170E #07170E #07170E #123C25 #216B42

Accessibility & contrast

On white

19.70
#040D08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040D08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040D08
19.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D08#FFFFFF#000000##FFFFFF
##040D081.0019.701.0719.70
#FFFFFF19.701.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D0C08
Deuteranopia (green-blind)
#0B0A08
Tritanopia (blue-blind)
#030D0C
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #040d08;
/* rgb */ color: rgb(4, 13, 8);
/* oklch */ color: oklch(14.7% 0.019 161.7);
Tailwind
colors: {
  custom: {
    50: '#484d4a',
    500: '#040d08',
    950: '#000000',
  },
}
SCSS
$custom: #040d08;
$custom-light: #484d4a;
$custom-dark: #000000;
JSON
{
  "hex": "#040d08",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 8
  },
  "hsl": {
    "h": 146.667,
    "s": 52.941,
    "l": 3.333
  },
  "oklch": {
    "l": 0.14668,
    "c": 0.01945,
    "h": 161.7
  },
  "luminance": 0.00331
}

Semantic roles & 50–950 ramp

primary
#040D08
secondary
#4B2239
accent
#4B9CDC
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000101
muted
#777777

Preview Lab

Preview with #040D08

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

Preview Lab → · Contrast checker → · Palette generator →

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