#042D0B#042D0B

#042D0B is a dark, moderate green. Relative luminance 0.019; OKLCH L 26.1% C 0.074 H 145.9°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#042D0B
RGBrgb(4, 45, 11)
HSLhsl(130, 84%, 10%)
HSVhsv(130, 91%, 18%)
CMYKcmyk(91.1%, 0%, 75.6%, 82.4%)
CIE-LABlab(15.10, -22.72, 16.97)
CIE-LCHlch(15.10, 28.36, 143.24°)
OKLaboklab(26.06% -0.0612 0.0414)
OKLCHoklch(26.06% 0.074 145.9)
XYZxyz(1.0488, 1.9266, 0.6331)
Luminance0.0193 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042D0B #2D0426
analogous
#122D04 #042D0B #042D20
triadic
#042D0B #0B042D #2D0B04
tetradic
#042D0B #04122D #2D0426 #2D2004
square
#042D0B #04122D #2D0426 #2D2004
split-complementary
#042D0B #20042D #2D0412
monochromatic
#021C07 #021C07 #042D0B #096519 #0E9D26

Accessibility & contrast

On white

15.16
#042D0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#042D0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042D0B
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042D0B#FFFFFF#000000##FFFFFF
##042D0B1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2807
Deuteranopia (green-blind)
#29250E
Tritanopia (blue-blind)
#002C26
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #042d0b;
/* rgb */ color: rgb(4, 45, 11);
/* oklch */ color: oklch(26.1% 0.074 145.9);
Tailwind
colors: {
  custom: {
    50: '#4b664c',
    500: '#042d0b',
    950: '#000000',
  },
}
SCSS
$custom: #042d0b;
$custom-light: #4b664c;
$custom-dark: #000000;
JSON
{
  "hex": "#042d0b",
  "rgb": {
    "r": 4,
    "g": 45,
    "b": 11
  },
  "hsl": {
    "h": 130.244,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.26056,
    "c": 0.07389,
    "h": 145.9
  },
  "luminance": 0.01927
}

Semantic roles & 50–950 ramp

primary
#042D0B
secondary
#701D62
accent
#2ED7FA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042D0B

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

Preview Lab → · Contrast checker → · Palette generator →

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