#042D16#042D16

#042D16 is a dark, moderate green. Relative luminance 0.020; OKLCH L 26.3% C 0.062 H 153.8°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#042D16
RGBrgb(4, 45, 22)
HSLhsl(146, 84%, 10%)
HSVhsv(146, 91%, 18%)
CMYKcmyk(91.1%, 0%, 51.1%, 82.4%)
CIE-LABlab(15.28, -20.59, 10.99)
CIE-LCHlch(15.28, 23.34, 151.92°)
OKLaboklab(26.26% -0.0554 0.0272)
OKLCHoklch(26.26% 0.062 153.8)
XYZxyz(1.1332, 1.9604, 1.0776)
Luminance0.0196 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042D16 #2D041B
analogous
#072D04 #042D16 #042D2B
triadic
#042D16 #16042D #2D1604
tetradic
#042D16 #04072D #2D041B #2D2B04
square
#042D16 #04072D #2D041B #2D2B04
split-complementary
#042D16 #2B042D #2D0407
monochromatic
#021C0E #021C0E #042D16 #096531 #0E9D4D

Accessibility & contrast

On white

15.08
#042D16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#042D16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042D16
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042D16#FFFFFF#000000##FFFFFF
##042D161.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2814
Deuteranopia (green-blind)
#282518
Tritanopia (blue-blind)
#002C27
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #042d16;
/* rgb */ color: rgb(4, 45, 22);
/* oklch */ color: oklch(26.3% 0.062 153.8);
Tailwind
colors: {
  custom: {
    50: '#4b6653',
    500: '#042d16',
    950: '#000000',
  },
}
SCSS
$custom: #042d16;
$custom-light: #4b6653;
$custom-dark: #000000;
JSON
{
  "hex": "#042d16",
  "rgb": {
    "r": 4,
    "g": 45,
    "b": 22
  },
  "hsl": {
    "h": 146.341,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.26264,
    "c": 0.06176,
    "h": 153.8
  },
  "luminance": 0.01961
}

Semantic roles & 50–950 ramp

primary
#042D16
secondary
#701D4B
accent
#2EA0FA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010602
muted
#777A78

Preview Lab

Preview with #042D16

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

Preview Lab → · Contrast checker → · Palette generator →

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