#042E18#042E18

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

Color values

HEX#042E18
RGBrgb(4, 46, 24)
HSLhsl(149, 84%, 10%)
HSVhsv(149, 91%, 18%)
CMYKcmyk(91.3%, 0%, 47.8%, 82%)
CIE-LABlab(15.72, -20.58, 10.24)
CIE-LCHlch(15.72, 22.99, 153.55°)
OKLaboklab(26.65% -0.0555 0.0255)
OKLCHoklch(26.65% 0.061 155.3)
XYZxyz(1.1918, 2.0456, 1.1960)
Luminance0.0205 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042E18 #2E041A
analogous
#052E04 #042E18 #042E2D
triadic
#042E18 #18042E #2E1804
tetradic
#042E18 #04052E #2E041A #2E2D04
square
#042E18 #04052E #2E041A #2E2D04
split-complementary
#042E18 #2D042E #2E0405
monochromatic
#021C0F #021C0F #042E18 #096635 #0E9F53

Accessibility & contrast

On white

14.90
#042E18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042E18
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042E18#FFFFFF#000000##FFFFFF
##042E181.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #042e18;
/* rgb */ color: rgb(4, 46, 24);
/* oklch */ color: oklch(26.6% 0.061 155.3);
Tailwind
colors: {
  custom: {
    50: '#4b6755',
    500: '#042e18',
    950: '#000000',
  },
}
SCSS
$custom: #042e18;
$custom-light: #4b6755;
$custom-dark: #000000;
JSON
{
  "hex": "#042e18",
  "rgb": {
    "r": 4,
    "g": 46,
    "b": 24
  },
  "hsl": {
    "h": 148.571,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.26647,
    "c": 0.06108,
    "h": 155.3
  },
  "luminance": 0.02046
}

Semantic roles & 50–950 ramp

primary
#042E18
secondary
#711D49
accent
#2E99FA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010603
muted
#777A78

Preview Lab

Preview with #042E18

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

Preview Lab → · Contrast checker → · Palette generator →

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