#042F12#042F12

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

Color values

HEX#042F12
RGBrgb(4, 47, 18)
HSLhsl(140, 84%, 10%)
HSVhsv(140, 91%, 18%)
CMYKcmyk(91.5%, 0%, 61.7%, 81.6%)
CIE-LABlab(16.02, -22.36, 14.51)
CIE-LCHlch(16.02, 26.66, 147.02°)
OKLaboklab(26.85% -0.0601 0.0352)
OKLCHoklch(26.85% 0.07 149.7)
XYZxyz(1.1757, 2.1024, 0.9160)
Luminance0.0210 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F12 #2F0421
analogous
#0B2F04 #042F12 #042F28
triadic
#042F12 #12042F #2F1204
tetradic
#042F12 #040B2F #2F0421 #2F2804
square
#042F12 #040B2F #2F0421 #2F2804
split-complementary
#042F12 #28042F #2F040B
monochromatic
#021C0B #021C0B #042F12 #096728 #0EA03D

Accessibility & contrast

On white

14.78
#042F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042F12
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F12#FFFFFF#000000##FFFFFF
##042F121.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #042f12;
/* rgb */ color: rgb(4, 47, 18);
/* oklch */ color: oklch(26.9% 0.070 149.7);
Tailwind
colors: {
  custom: {
    50: '#4c6850',
    500: '#042f12',
    950: '#000000',
  },
}
SCSS
$custom: #042f12;
$custom-light: #4c6850;
$custom-dark: #000000;
JSON
{
  "hex": "#042f12",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 18
  },
  "hsl": {
    "h": 139.535,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.2685,
    "c": 0.06959,
    "h": 149.7
  },
  "luminance": 0.02103
}

Semantic roles & 50–950 ramp

primary
#042F12
secondary
#721D56
accent
#2DB8FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010602
muted
#777A78

Preview Lab

Preview with #042F12

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

Preview Lab → · Contrast checker → · Palette generator →

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