#042F18#042F18

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

Color values

HEX#042F18
RGBrgb(4, 47, 24)
HSLhsl(148, 84%, 10%)
HSVhsv(148, 91%, 18%)
CMYKcmyk(91.5%, 0%, 48.9%, 81.6%)
CIE-LABlab(16.13, -21.05, 10.77)
CIE-LCHlch(16.13, 23.65, 152.90°)
OKLaboklab(26.98% -0.0567 0.0268)
OKLCHoklch(26.98% 0.063 154.7)
XYZxyz(1.2313, 2.1246, 1.2092)
Luminance0.0213 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F18 #2F041B
analogous
#052F04 #042F18 #042F2E
triadic
#042F18 #18042F #2F1804
tetradic
#042F18 #04052F #2F041B #2F2E04
square
#042F18 #04052F #2F041B #2F2E04
split-complementary
#042F18 #2E042F #2F0405
monochromatic
#021C0E #021C0E #042F18 #096735 #0EA052

Accessibility & contrast

On white

14.74
#042F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#042F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042F18
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F18#FFFFFF#000000##FFFFFF
##042F181.0014.741.4314.74
#FFFFFF14.741.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2A16
Deuteranopia (green-blind)
#2A271A
Tritanopia (blue-blind)
#002E29
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042f18;
/* rgb */ color: rgb(4, 47, 24);
/* oklch */ color: oklch(27.0% 0.063 154.7);
Tailwind
colors: {
  custom: {
    50: '#4c6855',
    500: '#042f18',
    950: '#000000',
  },
}
SCSS
$custom: #042f18;
$custom-light: #4c6855;
$custom-dark: #000000;
JSON
{
  "hex": "#042f18",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 24
  },
  "hsl": {
    "h": 147.907,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.2698,
    "c": 0.06271,
    "h": 154.7
  },
  "luminance": 0.02125
}

Semantic roles & 50–950 ramp

primary
#042F18
secondary
#721D4A
accent
#2D9BFB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010603
muted
#777A78

Preview Lab

Preview with #042F18

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

Preview Lab → · Contrast checker → · Palette generator →

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