#042D0C#042D0C

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

Color values

HEX#042D0C
RGBrgb(4, 45, 12)
HSLhsl(132, 84%, 10%)
HSVhsv(132, 91%, 18%)
CMYKcmyk(91.1%, 0%, 73.3%, 82.4%)
CIE-LABlab(15.11, -22.57, 16.55)
CIE-LCHlch(15.11, 27.99, 143.75°)
OKLaboklab(26.07% -0.0608 0.0403)
OKLCHoklch(26.07% 0.073 146.5)
XYZxyz(1.0547, 1.9290, 0.6645)
Luminance0.0193 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042D0C #2D0425
analogous
#112D04 #042D0C #042D21
triadic
#042D0C #0C042D #2D0C04
tetradic
#042D0C #04112D #2D0425 #2D2104
square
#042D0C #04112D #2D0425 #2D2104
split-complementary
#042D0C #21042D #2D0411
monochromatic
#021C07 #021C07 #042D0C #09651B #0E9D2A

Accessibility & contrast

On white

15.15
#042D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042D0C
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042D0C#FFFFFF#000000##FFFFFF
##042D0C1.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #042d0c;
/* rgb */ color: rgb(4, 45, 12);
/* oklch */ color: oklch(26.1% 0.073 146.5);
Tailwind
colors: {
  custom: {
    50: '#4b664c',
    500: '#042d0c',
    950: '#000000',
  },
}
SCSS
$custom: #042d0c;
$custom-light: #4b664c;
$custom-dark: #000000;
JSON
{
  "hex": "#042d0c",
  "rgb": {
    "r": 4,
    "g": 45,
    "b": 12
  },
  "hsl": {
    "h": 131.707,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.26071,
    "c": 0.0729,
    "h": 146.5
  },
  "luminance": 0.01929
}

Semantic roles & 50–950 ramp

primary
#042D0C
secondary
#701D60
accent
#2ED2FA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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