#042F14#042F14

#042F14 is a dark, moderate green. Relative luminance 0.021; OKLCH L 26.9% C 0.067 H 151.1°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#042F14
RGBrgb(4, 47, 20)
HSLhsl(142, 84%, 10%)
HSVhsv(142, 91%, 18%)
CMYKcmyk(91.5%, 0%, 57.4%, 81.6%)
CIE-LABlab(16.05, -21.96, 13.29)
CIE-LCHlch(16.05, 25.67, 148.81°)
OKLaboklab(26.89% -0.059 0.0325)
OKLCHoklch(26.89% 0.067 151.1)
XYZxyz(1.1927, 2.1092, 1.0059)
Luminance0.0211 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F14 #2F041F
analogous
#092F04 #042F14 #042F2A
triadic
#042F14 #14042F #2F1404
tetradic
#042F14 #04092F #2F041F #2F2A04
square
#042F14 #04092F #2F041F #2F2A04
split-complementary
#042F14 #2A042F #2F0409
monochromatic
#021C0C #021C0C #042F14 #09672C #0EA044

Accessibility & contrast

On white

14.77
#042F14 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042F14
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F14#FFFFFF#000000##FFFFFF
##042F141.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #042f14;
/* rgb */ color: rgb(4, 47, 20);
/* oklch */ color: oklch(26.9% 0.067 151.1);
Tailwind
colors: {
  custom: {
    50: '#4c6852',
    500: '#042f14',
    950: '#000000',
  },
}
SCSS
$custom: #042f14;
$custom-light: #4c6852;
$custom-dark: #000000;
JSON
{
  "hex": "#042f14",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 20
  },
  "hsl": {
    "h": 142.326,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.2689,
    "c": 0.06733,
    "h": 151.1
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#042F14
secondary
#721D52
accent
#2DAEFB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010602
muted
#777A78

Preview Lab

Preview with #042F14

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

Preview Lab → · Contrast checker → · Palette generator →

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