#042F05#042F05

#042F05 is a dark, moderate green. Relative luminance 0.021; OKLCH L 26.7% C 0.083 H 143.2°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#042F05
RGBrgb(4, 47, 5)
HSLhsl(121, 84%, 10%)
HSVhsv(121, 91%, 18%)
CMYKcmyk(91.5%, 0%, 89.4%, 81.6%)
CIE-LABlab(15.85, -24.39, 20.38)
CIE-LCHlch(15.85, 31.79, 140.12°)
OKLaboklab(26.66% -0.0661 0.0495)
OKLCHoklch(26.66% 0.083 143.2)
XYZxyz(1.0939, 2.0697, 0.4854)
Luminance0.0207 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F05 #2F042E
analogous
#192F04 #042F05 #042F1A
triadic
#042F05 #05042F #2F0504
tetradic
#042F05 #04192F #2F042E #2F1A04
square
#042F05 #04192F #2F042E #2F1A04
split-complementary
#042F05 #1A042F #2F0419
monochromatic
#021C03 #021C03 #042F05 #09670B #0EA011

Accessibility & contrast

On white

14.85
#042F05 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042F05
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F05#FFFFFF#000000##FFFFFF
##042F051.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #042f05;
/* rgb */ color: rgb(4, 47, 5);
/* oklch */ color: oklch(26.7% 0.083 143.2);
Tailwind
colors: {
  custom: {
    50: '#4c6849',
    500: '#042f05',
    950: '#000000',
  },
}
SCSS
$custom: #042f05;
$custom-light: #4c6849;
$custom-dark: #000000;
JSON
{
  "hex": "#042f05",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 5
  },
  "hsl": {
    "h": 121.395,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.26658,
    "c": 0.08259,
    "h": 143.2
  },
  "luminance": 0.0207
}

Semantic roles & 50–950 ramp

primary
#042F05
secondary
#721D70
accent
#2DF6FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042F05

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

Preview Lab → · Contrast checker → · Palette generator →

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