#042812#042812

#042812 is a very dark, muted green. Relative luminance 0.016; OKLCH L 24.5% C 0.058 H 152.5°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#042812
RGBrgb(4, 40, 18)
HSLhsl(143, 82%, 9%)
HSVhsv(143, 90%, 16%)
CMYKcmyk(90%, 0%, 55%, 84.3%)
CIE-LABlab(13.15, -19.17, 10.80)
CIE-LCHlch(13.15, 22.00, 150.60°)
OKLaboklab(24.48% -0.0516 0.0269)
OKLCHoklch(24.48% 0.058 152.5)
XYZxyz(0.9180, 1.5870, 0.8301)
Luminance0.0159 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042812 #28041A
analogous
#082804 #042812 #042824
triadic
#042812 #120428 #281204
tetradic
#042812 #040828 #28041A #282404
square
#042812 #040828 #28041A #282404
split-complementary
#042812 #240428 #280408
monochromatic
#031C0D #031C0D #042812 #0A602B #0F9744

Accessibility & contrast

On white

15.94
#042812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#042812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042812
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042812#FFFFFF#000000##FFFFFF
##0428121.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282410
Deuteranopia (green-blind)
#242114
Tritanopia (blue-blind)
#002723
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #042812;
/* rgb */ color: rgb(4, 40, 18);
/* oklch */ color: oklch(24.5% 0.058 152.5);
Tailwind
colors: {
  custom: {
    50: '#4a6250',
    500: '#042812',
    950: '#000000',
  },
}
SCSS
$custom: #042812;
$custom-light: #4a6250;
$custom-dark: #000000;
JSON
{
  "hex": "#042812",
  "rgb": {
    "r": 4,
    "g": 40,
    "b": 18
  },
  "hsl": {
    "h": 143.333,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.2448,
    "c": 0.05817,
    "h": 152.5
  },
  "luminance": 0.01587
}

Semantic roles & 50–950 ramp

primary
#042812
secondary
#6B1D4D
accent
#30AAF8
background
#F4F5F4
surface
#E7EAE7
border
#C3C6C3
text
#010502
muted
#777978

Preview Lab

Preview with #042812

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

Preview Lab → · Contrast checker → · Palette generator →

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