#040D02#040D02

#040D02 is a very dark, muted green. Relative luminance 0.003; OKLCH L 14.4% C 0.033 H 137.9°. Best body text is #FFFFFF at 19.74:1 contrast (WCAG AA passes).

Color values

HEX#040D02
RGBrgb(4, 13, 2)
HSLhsl(109, 73%, 3%)
HSVhsv(109, 85%, 5%)
CMYKcmyk(69.2%, 0%, 84.6%, 94.9%)
CIE-LABlab(2.87, -3.99, 3.41)
CIE-LCHlch(2.87, 5.25, 139.48°)
OKLaboklab(14.4% -0.0246 0.0222)
OKLCHoklch(14.4% 0.033 137.9)
XYZxyz(0.2049, 0.3180, 0.1080)
Luminance0.0032 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D02 #0B020D
analogous
#090D02 #040D02 #020D05
triadic
#040D02 #02040D #0D0204
tetradic
#040D02 #02090D #0B020D #0D0502
square
#040D02 #02090D #0B020D #0D0502
split-complementary
#040D02 #05020D #0D0209
monochromatic
#081B04 #081B04 #081B04 #14420A #257712

Accessibility & contrast

On white

19.74
#040D02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#040D02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040D02
19.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D02#FFFFFF#000000##FFFFFF
##040D021.0019.741.0619.74
#FFFFFF19.741.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E0B01
Deuteranopia (green-blind)
#0C0A02
Tritanopia (blue-blind)
#040C0A
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040d02;
/* rgb */ color: rgb(4, 13, 2);
/* oklch */ color: oklch(14.4% 0.033 137.9);
Tailwind
colors: {
  custom: {
    50: '#484c47',
    500: '#040d02',
    950: '#000000',
  },
}
SCSS
$custom: #040d02;
$custom-light: #484c47;
$custom-dark: #000000;
JSON
{
  "hex": "#040d02",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 2
  },
  "hsl": {
    "h": 109.091,
    "s": 73.333,
    "l": 2.941
  },
  "oklch": {
    "l": 0.14404,
    "c": 0.03316,
    "h": 137.9
  },
  "luminance": 0.00318
}

Semantic roles & 50–950 ramp

primary
#040D02
secondary
#471A51
accent
#38F0CF
background
#F4F4F4
surface
#E6E7E6
border
#C2C3C2
text
#000100
muted
#777777

Preview Lab

Preview with #040D02

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

Preview Lab → · Contrast checker → · Palette generator →

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