#040F07#040F07

#040F07 is a very dark, muted green. Relative luminance 0.004; OKLCH L 15.3% C 0.026 H 153.4°. Best body text is #FFFFFF at 19.51:1 contrast (WCAG AA passes).

Color values

HEX#040F07
RGBrgb(4, 15, 7)
HSLhsl(136, 58%, 4%)
HSVhsv(136, 73%, 6%)
CMYKcmyk(73.3%, 0%, 53.3%, 94.1%)
CIE-LABlab(3.46, -4.29, 2.23)
CIE-LCHlch(3.46, 4.83, 152.56°)
OKLaboklab(15.35% -0.0228 0.0114)
OKLCHoklch(15.35% 0.026 153.4)
XYZxyz(0.2592, 0.3828, 0.2612)
Luminance0.0038 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F07 #0F040C
analogous
#060F04 #040F07 #040F0C
triadic
#040F07 #07040F #0F0704
tetradic
#040F07 #04060F #0F040C #0F0C04
square
#040F07 #04060F #0F040C #0F0C04
split-complementary
#040F07 #0C040F #0F0406
monochromatic
#06180B #06180B #06180B #113F1E #1E7034

Accessibility & contrast

On white

19.51
#040F07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040F07
19.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F07#FFFFFF#000000##FFFFFF
##040F071.0019.511.0819.51
#FFFFFF19.511.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F0D07
Deuteranopia (green-blind)
#0D0C07
Tritanopia (blue-blind)
#030F0D
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040f07;
/* rgb */ color: rgb(4, 15, 7);
/* oklch */ color: oklch(15.3% 0.026 153.4);
Tailwind
colors: {
  custom: {
    50: '#484e4a',
    500: '#040f07',
    950: '#000000',
  },
}
SCSS
$custom: #040f07;
$custom-light: #484e4a;
$custom-dark: #000000;
JSON
{
  "hex": "#040f07",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 7
  },
  "hsl": {
    "h": 136.364,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.1535,
    "c": 0.02551,
    "h": 153.4
  },
  "luminance": 0.00383
}

Semantic roles & 50–950 ramp

primary
#040F07
secondary
#4E2142
accent
#47B7E1
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000101
muted
#777777

Preview Lab

Preview with #040F07

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

Preview Lab → · Contrast checker → · Palette generator →

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