#042212#042212

#042212 is a very dark, muted green. Relative luminance 0.012; OKLCH L 22.4% C 0.048 H 156.4°. Best body text is #FFFFFF at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#042212
RGBrgb(4, 34, 18)
HSLhsl(148, 79%, 7%)
HSVhsv(148, 88%, 13%)
CMYKcmyk(88.2%, 0%, 47.1%, 86.7%)
CIE-LABlab(10.66, -15.98, 7.39)
CIE-LCHlch(10.66, 17.61, 155.18°)
OKLaboklab(22.42% -0.0438 0.0191)
OKLCHoklch(22.42% 0.048 156.4)
XYZxyz(0.7312, 1.2135, 0.7678)
Luminance0.0121 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042212 #220414
analogous
#052204 #042212 #042221
triadic
#042212 #120422 #221204
tetradic
#042212 #040522 #220414 #222104
square
#042212 #040522 #220414 #222104
split-complementary
#042212 #210422 #220405
monochromatic
#031B0E #031B0E #042212 #0A592F #11904C

Accessibility & contrast

On white

16.90
#042212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#042212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042212
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042212#FFFFFF#000000##FFFFFF
##0422121.0016.901.2416.90
#FFFFFF16.901.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#221E11
Deuteranopia (green-blind)
#1E1C13
Tritanopia (blue-blind)
#00221E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #042212;
/* rgb */ color: rgb(4, 34, 18);
/* oklch */ color: oklch(22.4% 0.048 156.4);
Tailwind
colors: {
  custom: {
    50: '#485d50',
    500: '#042212',
    950: '#000000',
  },
}
SCSS
$custom: #042212;
$custom-light: #485d50;
$custom-dark: #000000;
JSON
{
  "hex": "#042212",
  "rgb": {
    "r": 4,
    "g": 34,
    "b": 18
  },
  "hsl": {
    "h": 148,
    "s": 78.947,
    "l": 7.451
  },
  "oklch": {
    "l": 0.22423,
    "c": 0.04781,
    "h": 156.4
  },
  "luminance": 0.01214
}

Semantic roles & 50–950 ramp

primary
#042212
secondary
#651D43
accent
#329AF5
background
#F4F5F4
surface
#E6E9E7
border
#C2C5C3
text
#000402
muted
#777978

Preview Lab

Preview with #042212

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

Preview Lab → · Contrast checker → · Palette generator →

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