#042312#042312

#042312 is a very dark, muted green. Relative luminance 0.013; OKLCH L 22.8% C 0.050 H 155.6°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#042312
RGBrgb(4, 35, 18)
HSLhsl(147, 79%, 8%)
HSVhsv(147, 89%, 14%)
CMYKcmyk(88.6%, 0%, 48.6%, 86.3%)
CIE-LABlab(11.07, -16.59, 7.97)
CIE-LCHlch(11.07, 18.41, 154.34°)
OKLaboklab(22.77% -0.0452 0.0205)
OKLCHoklch(22.77% 0.05 155.6)
XYZxyz(0.7602, 1.2715, 0.7775)
Luminance0.0127 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042312 #230415
analogous
#052304 #042312 #042321
triadic
#042312 #120423 #231204
tetradic
#042312 #040523 #230415 #232104
square
#042312 #040523 #230415 #232104
split-complementary
#042312 #210423 #230405
monochromatic
#031B0E #031B0E #042312 #0A5A2E #11914A

Accessibility & contrast

On white

16.74
#042312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#042312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042312
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042312#FFFFFF#000000##FFFFFF
##0423121.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231F11
Deuteranopia (green-blind)
#1F1C13
Tritanopia (blue-blind)
#00231F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #042312;
/* rgb */ color: rgb(4, 35, 18);
/* oklch */ color: oklch(22.8% 0.050 155.6);
Tailwind
colors: {
  custom: {
    50: '#485e50',
    500: '#042312',
    950: '#000000',
  },
}
SCSS
$custom: #042312;
$custom-light: #485e50;
$custom-dark: #000000;
JSON
{
  "hex": "#042312",
  "rgb": {
    "r": 4,
    "g": 35,
    "b": 18
  },
  "hsl": {
    "h": 147.097,
    "s": 79.487,
    "l": 7.647
  },
  "oklch": {
    "l": 0.22767,
    "c": 0.04957,
    "h": 155.6
  },
  "luminance": 0.01272
}

Semantic roles & 50–950 ramp

primary
#042312
secondary
#661D45
accent
#329DF6
background
#F4F5F4
surface
#E6E9E7
border
#C2C5C3
text
#010402
muted
#777978

Preview Lab

Preview with #042312

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

Preview Lab → · Contrast checker → · Palette generator →

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