#042E12#042E12

#042E12 is a dark, moderate green. Relative luminance 0.020; OKLCH L 26.5% C 0.068 H 150.0°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#042E12
RGBrgb(4, 46, 18)
HSLhsl(140, 84%, 10%)
HSVhsv(140, 91%, 18%)
CMYKcmyk(91.3%, 0%, 60.9%, 82%)
CIE-LABlab(15.61, -21.92, 14.00)
CIE-LCHlch(15.61, 26.01, 147.44°)
OKLaboklab(26.51% -0.0589 0.034)
OKLCHoklch(26.51% 0.068 150)
XYZxyz(1.1362, 2.0233, 0.9028)
Luminance0.0202 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042E12 #2E0420
analogous
#0B2E04 #042E12 #042E27
triadic
#042E12 #12042E #2E1204
tetradic
#042E12 #040B2E #2E0420 #2E2704
square
#042E12 #040B2E #2E0420 #2E2704
split-complementary
#042E12 #27042E #2E040B
monochromatic
#021C0B #021C0B #042E12 #096628 #0E9F3E

Accessibility & contrast

On white

14.95
#042E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#042E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042E12
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042E12#FFFFFF#000000##FFFFFF
##042E121.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2910
Deuteranopia (green-blind)
#292614
Tritanopia (blue-blind)
#002D27
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #042e12;
/* rgb */ color: rgb(4, 46, 18);
/* oklch */ color: oklch(26.5% 0.068 150.0);
Tailwind
colors: {
  custom: {
    50: '#4c6750',
    500: '#042e12',
    950: '#000000',
  },
}
SCSS
$custom: #042e12;
$custom-light: #4c6750;
$custom-dark: #000000;
JSON
{
  "hex": "#042e12",
  "rgb": {
    "r": 4,
    "g": 46,
    "b": 18
  },
  "hsl": {
    "h": 140,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.26514,
    "c": 0.068,
    "h": 150
  },
  "luminance": 0.02023
}

Semantic roles & 50–950 ramp

primary
#042E12
secondary
#711D55
accent
#2EB6FA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010602
muted
#777A78

Preview Lab

Preview with #042E12

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

Preview Lab → · Contrast checker → · Palette generator →

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