#042F17#042F17

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

Color values

HEX#042F17
RGBrgb(4, 47, 23)
HSLhsl(147, 84%, 10%)
HSVhsv(147, 91%, 18%)
CMYKcmyk(91.5%, 0%, 51.1%, 81.6%)
CIE-LABlab(16.11, -21.29, 11.41)
CIE-LCHlch(16.11, 24.16, 151.82°)
OKLaboklab(26.96% -0.0573 0.0283)
OKLCHoklch(26.96% 0.064 153.7)
XYZxyz(1.2211, 2.1206, 1.1554)
Luminance0.0212 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F17 #2F041C
analogous
#062F04 #042F17 #042F2D
triadic
#042F17 #17042F #2F1704
tetradic
#042F17 #04062F #2F041C #2F2D04
square
#042F17 #04062F #2F041C #2F2D04
split-complementary
#042F17 #2D042F #2F0406
monochromatic
#021C0E #021C0E #042F17 #096733 #0EA04E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##042F17#FFFFFF#000000##FFFFFF
##042F171.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)
#2F2A15
Deuteranopia (green-blind)
#2A2719
Tritanopia (blue-blind)
#002E29
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042f17;
/* rgb */ color: rgb(4, 47, 23);
/* oklch */ color: oklch(27.0% 0.064 153.7);
Tailwind
colors: {
  custom: {
    50: '#4c6854',
    500: '#042f17',
    950: '#000000',
  },
}
SCSS
$custom: #042f17;
$custom-light: #4c6854;
$custom-dark: #000000;
JSON
{
  "hex": "#042f17",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 23
  },
  "hsl": {
    "h": 146.512,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.26956,
    "c": 0.06387,
    "h": 153.7
  },
  "luminance": 0.02121
}

Semantic roles & 50–950 ramp

primary
#042F17
secondary
#721D4C
accent
#2DA0FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010602
muted
#777A78

Preview Lab

Preview with #042F17

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

Preview Lab → · Contrast checker → · Palette generator →

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