#042C17#042C17

#042C17 is a dark, muted green. Relative luminance 0.019; OKLCH L 26.0% C 0.059 H 155.4°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#042C17
RGBrgb(4, 44, 23)
HSLhsl(149, 83%, 9%)
HSVhsv(149, 91%, 17%)
CMYKcmyk(90.9%, 0%, 47.7%, 82.7%)
CIE-LABlab(14.89, -19.88, 9.81)
CIE-LCHlch(14.89, 22.17, 153.74°)
OKLaboklab(25.95% -0.0536 0.0245)
OKLCHoklch(25.95% 0.059 155.4)
XYZxyz(1.1053, 1.8889, 1.1168)
Luminance0.0189 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042C17 #2C0419
analogous
#052C04 #042C17 #042C2B
triadic
#042C17 #17042C #2C1704
tetradic
#042C17 #04052C #2C0419 #2C2B04
square
#042C17 #04052C #2C0419 #2C2B04
split-complementary
#042C17 #2B042C #2C0405
monochromatic
#031C0F #031C0F #042C17 #096434 #0E9C52

Accessibility & contrast

On white

15.24
#042C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#042C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042C17
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042C17#FFFFFF#000000##FFFFFF
##042C171.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2816
Deuteranopia (green-blind)
#272418
Tritanopia (blue-blind)
#002B27
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042c17;
/* rgb */ color: rgb(4, 44, 23);
/* oklch */ color: oklch(26.0% 0.059 155.4);
Tailwind
colors: {
  custom: {
    50: '#4b6554',
    500: '#042c17',
    950: '#000000',
  },
}
SCSS
$custom: #042c17;
$custom-light: #4b6554;
$custom-dark: #000000;
JSON
{
  "hex": "#042c17",
  "rgb": {
    "r": 4,
    "g": 44,
    "b": 23
  },
  "hsl": {
    "h": 148.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.25953,
    "c": 0.05894,
    "h": 155.4
  },
  "luminance": 0.01889
}

Semantic roles & 50–950 ramp

primary
#042C17
secondary
#6F1D48
accent
#2E99FA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010602
muted
#777A78

Preview Lab

Preview with #042C17

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

Preview Lab → · Contrast checker → · Palette generator →

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