#042E08#042E08

#042E08 is a dark, moderate green. Relative luminance 0.020; OKLCH L 26.4% C 0.078 H 144.5°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#042E08
RGBrgb(4, 46, 8)
HSLhsl(126, 84%, 10%)
HSVhsv(126, 91%, 18%)
CMYKcmyk(91.3%, 0%, 82.6%, 82%)
CIE-LABlab(15.47, -23.57, 18.69)
CIE-LCHlch(15.47, 30.08, 141.59°)
OKLaboklab(26.36% -0.0637 0.0455)
OKLCHoklch(26.36% 0.078 144.5)
XYZxyz(1.0708, 1.9972, 0.5587)
Luminance0.0200 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042E08 #2E042A
analogous
#152E04 #042E08 #042E1D
triadic
#042E08 #08042E #2E0804
tetradic
#042E08 #04152E #2E042A #2E1D04
square
#042E08 #04152E #2E042A #2E1D04
split-complementary
#042E08 #1D042E #2E0415
monochromatic
#021C05 #021C05 #042E08 #096612 #0E9F1C

Accessibility & contrast

On white

15.01
#042E08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042E08
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042E08#FFFFFF#000000##FFFFFF
##042E081.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #042e08;
/* rgb */ color: rgb(4, 46, 8);
/* oklch */ color: oklch(26.4% 0.078 144.5);
Tailwind
colors: {
  custom: {
    50: '#4c674a',
    500: '#042e08',
    950: '#000000',
  },
}
SCSS
$custom: #042e08;
$custom-light: #4c674a;
$custom-dark: #000000;
JSON
{
  "hex": "#042e08",
  "rgb": {
    "r": 4,
    "g": 46,
    "b": 8
  },
  "hsl": {
    "h": 125.714,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.26356,
    "c": 0.07823,
    "h": 144.5
  },
  "luminance": 0.01997
}

Semantic roles & 50–950 ramp

primary
#042E08
secondary
#711D69
accent
#2EE7FA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042E08

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

Preview Lab → · Contrast checker → · Palette generator →

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