#042D08#042D08

#042D08 is a dark, moderate green. Relative luminance 0.019; OKLCH L 26.0% C 0.077 H 144.6°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#042D08
RGBrgb(4, 45, 8)
HSLhsl(126, 84%, 10%)
HSVhsv(126, 91%, 18%)
CMYKcmyk(91.1%, 0%, 82.2%, 82.4%)
CIE-LABlab(15.06, -23.16, 18.16)
CIE-LCHlch(15.06, 29.43, 141.90°)
OKLaboklab(26.02% -0.0626 0.0445)
OKLCHoklch(26.02% 0.077 144.6)
XYZxyz(1.0322, 1.9200, 0.5459)
Luminance0.0192 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042D08 #2D0429
analogous
#152D04 #042D08 #042D1D
triadic
#042D08 #08042D #2D0804
tetradic
#042D08 #04152D #2D0429 #2D1D04
square
#042D08 #04152D #2D0429 #2D1D04
split-complementary
#042D08 #1D042D #2D0415
monochromatic
#021C05 #021C05 #042D08 #096512 #0E9D1C

Accessibility & contrast

On white

15.17
#042D08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#042D08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042D08
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042D08#FFFFFF#000000##FFFFFF
##042D081.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2804
Deuteranopia (green-blind)
#29250B
Tritanopia (blue-blind)
#002C25
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #042d08;
/* rgb */ color: rgb(4, 45, 8);
/* oklch */ color: oklch(26.0% 0.077 144.6);
Tailwind
colors: {
  custom: {
    50: '#4b664a',
    500: '#042d08',
    950: '#000000',
  },
}
SCSS
$custom: #042d08;
$custom-light: #4b664a;
$custom-dark: #000000;
JSON
{
  "hex": "#042d08",
  "rgb": {
    "r": 4,
    "g": 45,
    "b": 8
  },
  "hsl": {
    "h": 125.854,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.26015,
    "c": 0.07679,
    "h": 144.6
  },
  "luminance": 0.0192
}

Semantic roles & 50–950 ramp

primary
#042D08
secondary
#701D68
accent
#2EE6FA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042D08

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

Preview Lab → · Contrast checker → · Palette generator →

#042D08 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva