#040F02#040F02

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

Color values

HEX#040F02
RGBrgb(4, 15, 2)
HSLhsl(111, 76%, 3%)
HSVhsv(111, 87%, 6%)
CMYKcmyk(73.3%, 0%, 86.7%, 94.1%)
CIE-LABlab(3.36, -4.98, 4.12)
CIE-LCHlch(3.36, 6.46, 140.42°)
OKLaboklab(15.15% -0.0279 0.0244)
OKLCHoklch(15.15% 0.037 138.8)
XYZxyz(0.2318, 0.3718, 0.1170)
Luminance0.0037 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F02 #0D020F
analogous
#0A0F02 #040F02 #020F06
triadic
#040F02 #02040F #0F0204
tetradic
#040F02 #020A0F #0D020F #0F0602
square
#040F02 #020A0F #0D020F #0F0602
split-complementary
#040F02 #06020F #0F020A
monochromatic
#071B04 #071B04 #071B04 #124509 #217B10

Accessibility & contrast

On white

19.55
#040F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040F02
19.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F02#FFFFFF#000000##FFFFFF
##040F021.0019.551.0719.55
#FFFFFF19.551.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#100D01
Deuteranopia (green-blind)
#0E0C03
Tritanopia (blue-blind)
#030E0B
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040f02;
/* rgb */ color: rgb(4, 15, 2);
/* oklch */ color: oklch(15.2% 0.037 138.8);
Tailwind
colors: {
  custom: {
    50: '#484e47',
    500: '#040f02',
    950: '#000000',
  },
}
SCSS
$custom: #040f02;
$custom-light: #484e47;
$custom-dark: #000000;
JSON
{
  "hex": "#040f02",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 2
  },
  "hsl": {
    "h": 110.769,
    "s": 76.471,
    "l": 3.333
  },
  "oklch": {
    "l": 0.15151,
    "c": 0.03711,
    "h": 138.8
  },
  "luminance": 0.00372
}

Semantic roles & 50–950 ramp

primary
#040F02
secondary
#4B1954
accent
#35F3D6
background
#F4F4F4
surface
#E6E7E6
border
#C2C3C2
text
#000100
muted
#777777

Preview Lab

Preview with #040F02

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

Preview Lab → · Contrast checker → · Palette generator →

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