#042F16#042F16

#042F16 is a dark, moderate green. Relative luminance 0.021; OKLCH L 26.9% C 0.065 H 152.8°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#042F16
RGBrgb(4, 47, 22)
HSLhsl(145, 84%, 10%)
HSVhsv(145, 91%, 18%)
CMYKcmyk(91.5%, 0%, 53.2%, 81.6%)
CIE-LABlab(16.09, -21.52, 12.04)
CIE-LCHlch(16.09, 24.66, 150.77°)
OKLaboklab(26.93% -0.0578 0.0297)
OKLCHoklch(26.93% 0.065 152.8)
XYZxyz(1.2113, 2.1166, 1.1036)
Luminance0.0212 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F16 #2F041D
analogous
#082F04 #042F16 #042F2B
triadic
#042F16 #16042F #2F1604
tetradic
#042F16 #04082F #2F041D #2F2B04
square
#042F16 #04082F #2F041D #2F2B04
split-complementary
#042F16 #2B042F #2F0408
monochromatic
#021C0D #021C0D #042F16 #096730 #0EA04B

Accessibility & contrast

On white

14.75
#042F16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#042F16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042F16
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F16#FFFFFF#000000##FFFFFF
##042F161.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2A14
Deuteranopia (green-blind)
#2A2718
Tritanopia (blue-blind)
#002E29
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042f16;
/* rgb */ color: rgb(4, 47, 22);
/* oklch */ color: oklch(26.9% 0.065 152.8);
Tailwind
colors: {
  custom: {
    50: '#4c6853',
    500: '#042f16',
    950: '#000000',
  },
}
SCSS
$custom: #042f16;
$custom-light: #4c6853;
$custom-dark: #000000;
JSON
{
  "hex": "#042f16",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 22
  },
  "hsl": {
    "h": 145.116,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.26933,
    "c": 0.06503,
    "h": 152.8
  },
  "luminance": 0.02117
}

Semantic roles & 50–950 ramp

primary
#042F16
secondary
#721D4E
accent
#2DA5FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010602
muted
#777A78

Preview Lab

Preview with #042F16

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

Preview Lab → · Contrast checker → · Palette generator →

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