#042D0E#042D0E

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

Color values

HEX#042D0E
RGBrgb(4, 45, 14)
HSLhsl(135, 84%, 10%)
HSVhsv(135, 91%, 18%)
CMYKcmyk(91.1%, 0%, 68.9%, 82.4%)
CIE-LABlab(15.14, -22.24, 15.62)
CIE-LCHlch(15.14, 27.18, 144.91°)
OKLaboklab(26.1% -0.0598 0.038)
OKLCHoklch(26.1% 0.071 147.6)
XYZxyz(1.0676, 1.9342, 0.7324)
Luminance0.0193 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042D0E #2D0423
analogous
#0F2D04 #042D0E #042D23
triadic
#042D0E #0E042D #2D0E04
tetradic
#042D0E #040F2D #2D0423 #2D2304
square
#042D0E #040F2D #2D0423 #2D2304
split-complementary
#042D0E #23042D #2D040F
monochromatic
#021C09 #021C09 #042D0E #09651F #0E9D31

Accessibility & contrast

On white

15.14
#042D0E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042D0E
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042D0E#FFFFFF#000000##FFFFFF
##042D0E1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E280B
Deuteranopia (green-blind)
#292510
Tritanopia (blue-blind)
#002C26
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #042d0e;
/* rgb */ color: rgb(4, 45, 14);
/* oklch */ color: oklch(26.1% 0.071 147.6);
Tailwind
colors: {
  custom: {
    50: '#4b664d',
    500: '#042d0e',
    950: '#000000',
  },
}
SCSS
$custom: #042d0e;
$custom-light: #4b664d;
$custom-dark: #000000;
JSON
{
  "hex": "#042d0e",
  "rgb": {
    "r": 4,
    "g": 45,
    "b": 14
  },
  "hsl": {
    "h": 134.634,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.26103,
    "c": 0.07083,
    "h": 147.6
  },
  "luminance": 0.01934
}

Semantic roles & 50–950 ramp

primary
#042D0E
secondary
#701D5C
accent
#2EC8FA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042D0E

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

Preview Lab → · Contrast checker → · Palette generator →

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