#040F03#040F03

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

Color values

HEX#040F03
RGBrgb(4, 15, 3)
HSLhsl(115, 67%, 4%)
HSVhsv(115, 80%, 6%)
CMYKcmyk(73.3%, 0%, 80%, 94.1%)
CIE-LABlab(3.38, -4.84, 3.74)
CIE-LCHlch(3.38, 6.12, 142.32°)
OKLaboklab(15.19% -0.0267 0.0215)
OKLCHoklch(15.19% 0.034 141.2)
XYZxyz(0.2373, 0.3740, 0.1458)
Luminance0.0037 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F03 #0E030F
analogous
#0A0F03 #040F03 #030F08
triadic
#040F03 #03040F #0F0304
tetradic
#040F03 #030A0F #0E030F #0F0803
square
#040F03 #030A0F #0E030F #0F0803
split-complementary
#040F03 #08030F #0F030A
monochromatic
#071A05 #071A05 #071A05 #12420D #1F7517

Accessibility & contrast

On white

19.54
#040F03 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040F03
19.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F03#FFFFFF#000000##FFFFFF
##040F031.0019.541.0719.54
#FFFFFF19.541.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#100D02
Deuteranopia (green-blind)
#0E0C04
Tritanopia (blue-blind)
#030E0C
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040f03;
/* rgb */ color: rgb(4, 15, 3);
/* oklch */ color: oklch(15.2% 0.034 141.2);
Tailwind
colors: {
  custom: {
    50: '#484e48',
    500: '#040f03',
    950: '#000000',
  },
}
SCSS
$custom: #040f03;
$custom-light: #484e48;
$custom-dark: #000000;
JSON
{
  "hex": "#040f03",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 3
  },
  "hsl": {
    "h": 115,
    "s": 66.667,
    "l": 3.529
  },
  "oklch": {
    "l": 0.15191,
    "c": 0.03429,
    "h": 141.2
  },
  "luminance": 0.00374
}

Semantic roles & 50–950 ramp

primary
#040F03
secondary
#4C1D51
accent
#3EEADB
background
#F4F4F4
surface
#E6E7E6
border
#C2C3C2
text
#000100
muted
#777777

Preview Lab

Preview with #040F03

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

Preview Lab → · Contrast checker → · Palette generator →

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