#042A16#042A16

#042A16 is a dark, muted green. Relative luminance 0.017; OKLCH L 25.3% C 0.057 H 155.6°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#042A16
RGBrgb(4, 42, 22)
HSLhsl(148, 83%, 9%)
HSVhsv(148, 90%, 16%)
CMYKcmyk(90.5%, 0%, 47.6%, 83.5%)
CIE-LABlab(14.06, -19.16, 9.38)
CIE-LCHlch(14.06, 21.33, 153.93°)
OKLaboklab(25.26% -0.0517 0.0234)
OKLCHoklch(25.26% 0.057 155.6)
XYZxyz(1.0228, 1.7395, 1.0408)
Luminance0.0174 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042A16 #2A0418
analogous
#052A04 #042A16 #042A29
triadic
#042A16 #16042A #2A1604
tetradic
#042A16 #04052A #2A0418 #2A2904
square
#042A16 #04052A #2A0418 #2A2904
split-complementary
#042A16 #29042A #2A0405
monochromatic
#031C0F #031C0F #042A16 #096233 #0F9A51

Accessibility & contrast

On white

15.58
#042A16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#042A16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042A16
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042A16#FFFFFF#000000##FFFFFF
##042A161.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2615
Deuteranopia (green-blind)
#252217
Tritanopia (blue-blind)
#002925
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #042a16;
/* rgb */ color: rgb(4, 42, 22);
/* oklch */ color: oklch(25.3% 0.057 155.6);
Tailwind
colors: {
  custom: {
    50: '#4a6453',
    500: '#042a16',
    950: '#000000',
  },
}
SCSS
$custom: #042a16;
$custom-light: #4a6453;
$custom-dark: #000000;
JSON
{
  "hex": "#042a16",
  "rgb": {
    "r": 4,
    "g": 42,
    "b": 22
  },
  "hsl": {
    "h": 148.421,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.25256,
    "c": 0.05678,
    "h": 155.6
  },
  "luminance": 0.0174
}

Semantic roles & 50–950 ramp

primary
#042A16
secondary
#6D1D47
accent
#2F99F9
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010502
muted
#777A78

Preview Lab

Preview with #042A16

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

Preview Lab → · Contrast checker → · Palette generator →

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