#042E17#042E17

#042E17 is a dark, moderate green. Relative luminance 0.020; OKLCH L 26.6% C 0.062 H 154.3°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#042E17
RGBrgb(4, 46, 23)
HSLhsl(147, 84%, 10%)
HSVhsv(147, 91%, 18%)
CMYKcmyk(91.3%, 0%, 50%, 82%)
CIE-LABlab(15.70, -20.83, 10.88)
CIE-LCHlch(15.70, 23.50, 152.42°)
OKLaboklab(26.62% -0.0561 0.027)
OKLCHoklch(26.62% 0.062 154.3)
XYZxyz(1.1816, 2.0415, 1.1422)
Luminance0.0204 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042E17 #2E041B
analogous
#062E04 #042E17 #042E2C
triadic
#042E17 #17042E #2E1704
tetradic
#042E17 #04062E #2E041B #2E2C04
square
#042E17 #04062E #2E041B #2E2C04
split-complementary
#042E17 #2C042E #2E0406
monochromatic
#021C0E #021C0E #042E17 #096633 #0E9F4F

Accessibility & contrast

On white

14.91
#042E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#042E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042E17
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042E17#FFFFFF#000000##FFFFFF
##042E171.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2915
Deuteranopia (green-blind)
#292619
Tritanopia (blue-blind)
#002D28
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #042e17;
/* rgb */ color: rgb(4, 46, 23);
/* oklch */ color: oklch(26.6% 0.062 154.3);
Tailwind
colors: {
  custom: {
    50: '#4b6754',
    500: '#042e17',
    950: '#000000',
  },
}
SCSS
$custom: #042e17;
$custom-light: #4b6754;
$custom-dark: #000000;
JSON
{
  "hex": "#042e17",
  "rgb": {
    "r": 4,
    "g": 46,
    "b": 23
  },
  "hsl": {
    "h": 147.143,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.26623,
    "c": 0.06224,
    "h": 154.3
  },
  "luminance": 0.02042
}

Semantic roles & 50–950 ramp

primary
#042E17
secondary
#711D4B
accent
#2E9EFA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010602
muted
#777A78

Preview Lab

Preview with #042E17

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

Preview Lab → · Contrast checker → · Palette generator →

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