#042D02#042D02

#042D02 is a dark, moderate green. Relative luminance 0.019; OKLCH L 25.9% C 0.083 H 141.9°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#042D02
RGBrgb(4, 45, 2)
HSLhsl(117, 91%, 9%)
HSVhsv(117, 96%, 18%)
CMYKcmyk(91.1%, 0%, 95.6%, 82.4%)
CIE-LABlab(14.99, -24.04, 20.51)
CIE-LCHlch(14.99, 31.60, 139.53°)
OKLaboklab(25.93% -0.0655 0.0512)
OKLCHoklch(25.93% 0.083 141.9)
XYZxyz(0.9994, 1.9068, 0.3728)
Luminance0.0191 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042D02 #2B022D
analogous
#1A2D02 #042D02 #022D16
triadic
#042D02 #02042D #2D0204
tetradic
#042D02 #021A2D #2B022D #2D1602
square
#042D02 #021A2D #2B022D #2D1602
split-complementary
#042D02 #16022D #2D021A
monochromatic
#031D01 #031D01 #042D02 #096805 #0EA207

Accessibility & contrast

On white

15.20
#042D02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042D02
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042D02#FFFFFF#000000##FFFFFF
##042D021.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2800
Deuteranopia (green-blind)
#2A2406
Tritanopia (blue-blind)
#002B25
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #042d02;
/* rgb */ color: rgb(4, 45, 2);
/* oklch */ color: oklch(25.9% 0.083 141.9);
Tailwind
colors: {
  custom: {
    50: '#4b6647',
    500: '#042d02',
    950: '#000000',
  },
}
SCSS
$custom: #042d02;
$custom-light: #4b6647;
$custom-dark: #000000;
JSON
{
  "hex": "#042d02",
  "rgb": {
    "r": 4,
    "g": 45,
    "b": 2
  },
  "hsl": {
    "h": 117.209,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.25933,
    "c": 0.08313,
    "h": 141.9
  },
  "luminance": 0.01907
}

Semantic roles & 50–950 ramp

primary
#042D02
secondary
#6E1972
accent
#29FFF5
background
#F4F6F4
surface
#E7EBE6
border
#C3C6C2
text
#010600
muted
#777A77

Preview Lab

Preview with #042D02

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

Preview Lab → · Contrast checker → · Palette generator →

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