#040802#040802

#040802 is a very dark, muted green. Relative luminance 0.002; OKLCH L 12.5% C 0.022 H 133.1°. Best body text is #FFFFFF at 20.18:1 contrast (WCAG AA passes).

Color values

HEX#040802
RGBrgb(4, 8, 2)
HSLhsl(100, 60%, 2%)
HSVhsv(100, 75%, 3%)
CMYKcmyk(50%, 0%, 75%, 96.9%)
CIE-LABlab(1.84, -1.88, 1.90)
CIE-LCHlch(1.84, 2.67, 134.66°)
OKLaboklab(12.49% -0.0151 0.0161)
OKLCHoklch(12.49% 0.022 133.1)
XYZxyz(0.1479, 0.2039, 0.0890)
Luminance0.0020 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040802 #060208
analogous
#070802 #040802 #020803
triadic
#040802 #020408 #080204
tetradic
#040802 #020708 #060208 #080302
square
#040802 #020708 #060208 #080302
split-complementary
#040802 #030208 #080207
monochromatic
#0C1806 #0C1806 #0C1806 #1C390E #356A1A

Accessibility & contrast

On white

20.18
#040802 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#040802 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040802
20.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040802#FFFFFF#000000##FFFFFF
##0408021.0020.181.0420.18
#FFFFFF20.181.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#090702
Deuteranopia (green-blind)
#080702
Tritanopia (blue-blind)
#040706
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #040802;
/* rgb */ color: rgb(4, 8, 2);
/* oklch */ color: oklch(12.5% 0.022 133.1);
Tailwind
colors: {
  custom: {
    50: '#484a48',
    500: '#040802',
    950: '#000000',
  },
}
SCSS
$custom: #040802;
$custom-light: #484a48;
$custom-dark: #000000;
JSON
{
  "hex": "#040802",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 2
  },
  "hsl": {
    "h": 100,
    "s": 60,
    "l": 1.961
  },
  "oklch": {
    "l": 0.12491,
    "c": 0.02204,
    "h": 133.1
  },
  "luminance": 0.00204
}

Semantic roles & 50–950 ramp

primary
#040802
secondary
#3A1E48
accent
#45E3AE
background
#F4F4F4
surface
#E6E7E6
border
#C2C3C2
text
#000100
muted
#777777

Preview Lab

Preview with #040802

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

Preview Lab → · Contrast checker → · Palette generator →

#040802 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva