#042F04#042F04

#042F04 is a dark, moderate green. Relative luminance 0.021; OKLCH L 26.6% C 0.084 H 142.8°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#042F04
RGBrgb(4, 47, 4)
HSLhsl(120, 84%, 10%)
HSVhsv(120, 91%, 18%)
CMYKcmyk(91.5%, 0%, 91.5%, 81.6%)
CIE-LABlab(15.84, -24.53, 20.78)
CIE-LCHlch(15.84, 32.15, 139.74°)
OKLaboklab(26.65% -0.0666 0.0506)
OKLCHoklch(26.65% 0.084 142.8)
XYZxyz(1.0884, 2.0675, 0.4565)
Luminance0.0207 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F04 #2F042F
analogous
#1A2F04 #042F04 #042F1A
triadic
#042F04 #04042F #2F0404
tetradic
#042F04 #04192F #2F042F #2F1A04
square
#042F04 #04192F #2F042F #2F1A04
split-complementary
#042F04 #19042F #2F041A
monochromatic
#021C02 #021C02 #042F04 #096709 #0EA00E

Accessibility & contrast

On white

14.86
#042F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#042F04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042F04
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F04#FFFFFF#000000##FFFFFF
##042F041.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302900
Deuteranopia (green-blind)
#2B2608
Tritanopia (blue-blind)
#002D27
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #042f04;
/* rgb */ color: rgb(4, 47, 4);
/* oklch */ color: oklch(26.6% 0.084 142.8);
Tailwind
colors: {
  custom: {
    50: '#4c6848',
    500: '#042f04',
    950: '#000000',
  },
}
SCSS
$custom: #042f04;
$custom-light: #4c6848;
$custom-dark: #000000;
JSON
{
  "hex": "#042f04",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 4
  },
  "hsl": {
    "h": 120,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.26645,
    "c": 0.08361,
    "h": 142.8
  },
  "luminance": 0.02068
}

Semantic roles & 50–950 ramp

primary
#042F04
secondary
#721D72
accent
#2DFBFB
background
#F4F6F4
surface
#E7EBE6
border
#C3C6C2
text
#010600
muted
#777A77

Preview Lab

Preview with #042F04

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

Preview Lab → · Contrast checker → · Palette generator →

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