#040C06#040C06

#040C06 is a very dark, muted green. Relative luminance 0.003; OKLCH L 14.2% C 0.021 H 153.1°. Best body text is #FFFFFF at 19.80:1 contrast (WCAG AA passes).

Color values

HEX#040C06
RGBrgb(4, 12, 6)
HSLhsl(135, 50%, 3%)
HSVhsv(135, 67%, 5%)
CMYKcmyk(66.7%, 0%, 50%, 95.3%)
CIE-LABlab(2.73, -2.97, 1.57)
CIE-LCHlch(2.73, 3.36, 152.21°)
OKLaboklab(14.22% -0.0183 0.0093)
OKLCHoklch(14.22% 0.021 153.1)
XYZxyz(0.2144, 0.3019, 0.2192)
Luminance0.0030 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040C06 #0C040A
analogous
#060C04 #040C06 #040C0A
triadic
#040C06 #06040C #0C0604
tetradic
#040C06 #04060C #0C040A #0C0A04
square
#040C06 #04060C #0C040A #0C0A04
split-complementary
#040C06 #0A040C #0C0406
monochromatic
#08170B #08170B #08170B #133A1D #236834

Accessibility & contrast

On white

19.80
#040C06 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040C06
19.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040C06#FFFFFF#000000##FFFFFF
##040C061.0019.801.0619.80
#FFFFFF19.801.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C0B06
Deuteranopia (green-blind)
#0B0A06
Tritanopia (blue-blind)
#030C0A
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040c06;
/* rgb */ color: rgb(4, 12, 6);
/* oklch */ color: oklch(14.2% 0.021 153.1);
Tailwind
colors: {
  custom: {
    50: '#484c49',
    500: '#040c06',
    950: '#000000',
  },
}
SCSS
$custom: #040c06;
$custom-light: #484c49;
$custom-dark: #000000;
JSON
{
  "hex": "#040c06",
  "rgb": {
    "r": 4,
    "g": 12,
    "b": 6
  },
  "hsl": {
    "h": 135,
    "s": 50,
    "l": 3.137
  },
  "oklch": {
    "l": 0.14217,
    "c": 0.02055,
    "h": 153.1
  },
  "luminance": 0.00302
}

Semantic roles & 50–950 ramp

primary
#040C06
secondary
#49233F
accent
#4EB7DA
background
#F4F4F4
surface
#E6E7E6
border
#C2C3C2
text
#000100
muted
#777777

Preview Lab

Preview with #040C06

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

Preview Lab → · Contrast checker → · Palette generator →

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