#042B17#042B17

#042B17 is a dark, muted green. Relative luminance 0.018; OKLCH L 25.6% C 0.057 H 156.1°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#042B17
RGBrgb(4, 43, 23)
HSLhsl(149, 83%, 9%)
HSVhsv(149, 91%, 17%)
CMYKcmyk(90.7%, 0%, 46.5%, 83.1%)
CIE-LABlab(14.49, -19.40, 9.27)
CIE-LCHlch(14.49, 21.50, 154.46°)
OKLaboklab(25.62% -0.0524 0.0232)
OKLCHoklch(25.62% 0.057 156.1)
XYZxyz(1.0685, 1.8153, 1.1045)
Luminance0.0181 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042B17 #2B0418
analogous
#042B04 #042B17 #042B2B
triadic
#042B17 #17042B #2B1704
tetradic
#042B17 #04042B #2B0418 #2B2B04
square
#042B17 #04042B #2B0418 #2B2B04
split-complementary
#042B17 #2B042B #2B0404
monochromatic
#031C0F #031C0F #042B17 #096335 #0E9B53

Accessibility & contrast

On white

15.41
#042B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#042B17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042B17
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042B17#FFFFFF#000000##FFFFFF
##042B171.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2716
Deuteranopia (green-blind)
#262318
Tritanopia (blue-blind)
#002B26
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042b17;
/* rgb */ color: rgb(4, 43, 23);
/* oklch */ color: oklch(25.6% 0.057 156.1);
Tailwind
colors: {
  custom: {
    50: '#4a6554',
    500: '#042b17',
    950: '#000000',
  },
}
SCSS
$custom: #042b17;
$custom-light: #4a6554;
$custom-dark: #000000;
JSON
{
  "hex": "#042b17",
  "rgb": {
    "r": 4,
    "g": 43,
    "b": 23
  },
  "hsl": {
    "h": 149.231,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.25618,
    "c": 0.05728,
    "h": 156.1
  },
  "luminance": 0.01815
}

Semantic roles & 50–950 ramp

primary
#042B17
secondary
#6E1D46
accent
#2E96F9
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010502
muted
#777A78

Preview Lab

Preview with #042B17

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

Preview Lab → · Contrast checker → · Palette generator →

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