#040C07#040C07

#040C07 is a very dark, near-neutral green. Relative luminance 0.003; OKLCH L 14.3% C 0.019 H 158.7°. Best body text is #FFFFFF at 19.80:1 contrast (WCAG AA passes).

Color values

HEX#040C07
RGBrgb(4, 12, 7)
HSLhsl(143, 50%, 3%)
HSVhsv(143, 67%, 5%)
CMYKcmyk(66.7%, 0%, 41.7%, 95.3%)
CIE-LABlab(2.75, -2.83, 1.19)
CIE-LCHlch(2.75, 3.07, 157.25°)
OKLaboklab(14.26% -0.0174 0.0068)
OKLCHoklch(14.26% 0.019 158.7)
XYZxyz(0.2199, 0.3041, 0.2481)
Luminance0.0030 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040C07 #0C0409
analogous
#050C04 #040C07 #040C0B
triadic
#040C07 #07040C #0C0704
tetradic
#040C07 #04050C #0C0409 #0C0B04
square
#040C07 #04050C #0C0409 #0C0B04
split-complementary
#040C07 #0B040C #0C0405
monochromatic
#08170D #08170D #08170D #133A22 #23683D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##040C07#FFFFFF#000000##FFFFFF
##040C071.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)
#0C0B07
Deuteranopia (green-blind)
#0A0A07
Tritanopia (blue-blind)
#030C0B
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040c07;
/* rgb */ color: rgb(4, 12, 7);
/* oklch */ color: oklch(14.3% 0.019 158.7);
Tailwind
colors: {
  custom: {
    50: '#484c4a',
    500: '#040c07',
    950: '#000000',
  },
}
SCSS
$custom: #040c07;
$custom-light: #484c4a;
$custom-dark: #000000;
JSON
{
  "hex": "#040c07",
  "rgb": {
    "r": 4,
    "g": 12,
    "b": 7
  },
  "hsl": {
    "h": 142.5,
    "s": 50,
    "l": 3.137
  },
  "oklch": {
    "l": 0.14263,
    "c": 0.01874,
    "h": 158.7
  },
  "luminance": 0.00304
}

Semantic roles & 50–950 ramp

primary
#040C07
secondary
#49233B
accent
#4EA5DA
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000101
muted
#777777

Preview Lab

Preview with #040C07

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

Preview Lab → · Contrast checker → · Palette generator →

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