#042E02#042E02

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

Color values

HEX#042E02
RGBrgb(4, 46, 2)
HSLhsl(117, 92%, 9%)
HSVhsv(117, 96%, 18%)
CMYKcmyk(91.3%, 0%, 95.7%, 82%)
CIE-LABlab(15.40, -24.43, 21.04)
CIE-LCHlch(15.40, 32.24, 139.26°)
OKLaboklab(26.28% -0.0665 0.052)
OKLCHoklch(26.28% 0.084 142)
XYZxyz(1.0380, 1.9841, 0.3857)
Luminance0.0198 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042E02 #2C022E
analogous
#1A2E02 #042E02 #022E16
triadic
#042E02 #02042E #2E0204
tetradic
#042E02 #021A2E #2C022E #2E1602
square
#042E02 #021A2E #2C022E #2E1602
split-complementary
#042E02 #16022E #2E021A
monochromatic
#031D01 #031D01 #042E02 #096905 #0EA307

Accessibility & contrast

On white

15.03
#042E02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#042E02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042E02
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042E02#FFFFFF#000000##FFFFFF
##042E021.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2800
Deuteranopia (green-blind)
#2B2506
Tritanopia (blue-blind)
#002C26
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #042e02;
/* rgb */ color: rgb(4, 46, 2);
/* oklch */ color: oklch(26.3% 0.084 142.0);
Tailwind
colors: {
  custom: {
    50: '#4c6747',
    500: '#042e02',
    950: '#000000',
  },
}
SCSS
$custom: #042e02;
$custom-light: #4c6747;
$custom-dark: #000000;
JSON
{
  "hex": "#042e02",
  "rgb": {
    "r": 4,
    "g": 46,
    "b": 2
  },
  "hsl": {
    "h": 117.273,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.26276,
    "c": 0.08443,
    "h": 142
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #042E02

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

Preview Lab → · Contrast checker → · Palette generator →

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