#040F08#040F08

#040F08 is a very dark, muted green. Relative luminance 0.004; OKLCH L 15.4% C 0.024 H 157.2°. Best body text is #FFFFFF at 19.50:1 contrast (WCAG AA passes).

Color values

HEX#040F08
RGBrgb(4, 15, 8)
HSLhsl(142, 58%, 4%)
HSVhsv(142, 73%, 6%)
CMYKcmyk(73.3%, 0%, 46.7%, 94.1%)
CIE-LABlab(3.48, -4.15, 1.85)
CIE-LCHlch(3.48, 4.54, 155.98°)
OKLaboklab(15.39% -0.022 0.0092)
OKLCHoklch(15.39% 0.024 157.2)
XYZxyz(0.2647, 0.3850, 0.2900)
Luminance0.0039 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F08 #0F040B
analogous
#050F04 #040F08 #040F0D
triadic
#040F08 #08040F #0F0804
tetradic
#040F08 #04050F #0F040B #0F0D04
square
#040F08 #04050F #0F040B #0F0D04
split-complementary
#040F08 #0D040F #0F0405
monochromatic
#06180D #06180D #06180D #113F22 #1E703C

Accessibility & contrast

On white

19.50
#040F08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040F08
19.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F08#FFFFFF#000000##FFFFFF
##040F081.0019.501.0819.50
#FFFFFF19.501.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F0D08
Deuteranopia (green-blind)
#0D0C08
Tritanopia (blue-blind)
#020F0D
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040f08;
/* rgb */ color: rgb(4, 15, 8);
/* oklch */ color: oklch(15.4% 0.024 157.2);
Tailwind
colors: {
  custom: {
    50: '#484e4a',
    500: '#040f08',
    950: '#000000',
  },
}
SCSS
$custom: #040f08;
$custom-light: #484e4a;
$custom-dark: #000000;
JSON
{
  "hex": "#040f08",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 8
  },
  "hsl": {
    "h": 141.818,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.1539,
    "c": 0.02387,
    "h": 157.2
  },
  "luminance": 0.00385
}

Semantic roles & 50–950 ramp

primary
#040F08
secondary
#4E213E
accent
#47A9E1
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000101
muted
#777777

Preview Lab

Preview with #040F08

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

Preview Lab → · Contrast checker → · Palette generator →

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