#042512#042512

#042512 is a very dark, muted green. Relative luminance 0.014; OKLCH L 23.5% C 0.053 H 154.2°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#042512
RGBrgb(4, 37, 18)
HSLhsl(145, 80%, 8%)
HSVhsv(145, 89%, 15%)
CMYKcmyk(89.2%, 0%, 51.4%, 85.5%)
CIE-LABlab(11.91, -17.71, 9.12)
CIE-LCHlch(11.91, 19.92, 152.75°)
OKLaboklab(23.45% -0.0478 0.0231)
OKLCHoklch(23.45% 0.053 154.2)
XYZxyz(0.8207, 1.3925, 0.7977)
Luminance0.0139 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042512 #250417
analogous
#062504 #042512 #042522
triadic
#042512 #120425 #251204
tetradic
#042512 #040625 #250417 #252204
square
#042512 #040625 #250417 #252204
split-complementary
#042512 #220425 #250406
monochromatic
#031C0D #031C0D #042512 #0A5C2D #109348

Accessibility & contrast

On white

16.42
#042512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#042512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042512
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042512#FFFFFF#000000##FFFFFF
##0425121.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252111
Deuteranopia (green-blind)
#211E13
Tritanopia (blue-blind)
#002420
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #042512;
/* rgb */ color: rgb(4, 37, 18);
/* oklch */ color: oklch(23.5% 0.053 154.2);
Tailwind
colors: {
  custom: {
    50: '#496050',
    500: '#042512',
    950: '#000000',
  },
}
SCSS
$custom: #042512;
$custom-light: #496050;
$custom-dark: #000000;
JSON
{
  "hex": "#042512",
  "rgb": {
    "r": 4,
    "g": 37,
    "b": 18
  },
  "hsl": {
    "h": 145.455,
    "s": 80.488,
    "l": 8.039
  },
  "oklch": {
    "l": 0.23454,
    "c": 0.05305,
    "h": 154.2
  },
  "luminance": 0.01393
}

Semantic roles & 50–950 ramp

primary
#042512
secondary
#681D48
accent
#31A3F7
background
#F4F5F4
surface
#E7E9E7
border
#C3C5C3
text
#010502
muted
#777978

Preview Lab

Preview with #042512

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

Preview Lab → · Contrast checker → · Palette generator →

#042512 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva