#042F11#042F11

#042F11 is a dark, moderate green. Relative luminance 0.021; OKLCH L 26.8% C 0.071 H 149.0°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#042F11
RGBrgb(4, 47, 17)
HSLhsl(138, 84%, 10%)
HSVhsv(138, 91%, 18%)
CMYKcmyk(91.5%, 0%, 63.8%, 81.6%)
CIE-LABlab(16.00, -22.56, 15.09)
CIE-LCHlch(16.00, 27.14, 146.22°)
OKLaboklab(26.83% -0.0606 0.0364)
OKLCHoklch(26.83% 0.071 149)
XYZxyz(1.1677, 2.0992, 0.8738)
Luminance0.0210 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F11 #2F0422
analogous
#0C2F04 #042F11 #042F27
triadic
#042F11 #11042F #2F1104
tetradic
#042F11 #040C2F #2F0422 #2F2704
square
#042F11 #040C2F #2F0422 #2F2704
split-complementary
#042F11 #27042F #2F040C
monochromatic
#021C0A #021C0A #042F11 #096725 #0EA03A

Accessibility & contrast

On white

14.79
#042F11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042F11
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F11#FFFFFF#000000##FFFFFF
##042F111.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2A0E
Deuteranopia (green-blind)
#2A2613
Tritanopia (blue-blind)
#002E28
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042f11;
/* rgb */ color: rgb(4, 47, 17);
/* oklch */ color: oklch(26.8% 0.071 149.0);
Tailwind
colors: {
  custom: {
    50: '#4c684f',
    500: '#042f11',
    950: '#000000',
  },
}
SCSS
$custom: #042f11;
$custom-light: #4c684f;
$custom-dark: #000000;
JSON
{
  "hex": "#042f11",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 17
  },
  "hsl": {
    "h": 138.14,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.26831,
    "c": 0.0707,
    "h": 149
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#042F11
secondary
#721D58
accent
#2DBCFB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010602
muted
#777A78

Preview Lab

Preview with #042F11

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

Preview Lab → · Contrast checker → · Palette generator →

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