#2E4A12#2E4A12

#2E4A12 is a dark, moderate yellow-green. Relative luminance 0.055; OKLCH L 37.4% C 0.089 H 132.3°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#2E4A12
RGBrgb(46, 74, 18)
HSLhsl(90, 61%, 18%)
HSVhsv(90, 76%, 29%)
CMYKcmyk(37.8%, 0%, 75.7%, 71%)
CIE-LABlab(28.17, -21.18, 28.82)
CIE-LCHlch(28.17, 35.77, 126.31°)
OKLaboklab(37.36% -0.0595 0.0655)
OKLCHoklch(37.36% 0.089 132.3)
XYZxyz(3.6846, 5.5219, 1.4439)
Luminance0.0552 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4A12 #2E124A
analogous
#4A4A12 #2E4A12 #124A12
triadic
#2E4A12 #122E4A #4A122E
tetradic
#2E4A12 #124A4A #2E124A #4A1212
square
#2E4A12 #124A4A #2E124A #4A1212
split-complementary
#2E4A12 #12124A #4A124A
monochromatic
#0F1906 #0F1906 #2E4A12 #4D7B1E #6BAC2A

Accessibility & contrast

On white

9.98
#2E4A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2E4A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4A12
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4A12#FFFFFF#000000##FFFFFF
##2E4A121.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D440A
Deuteranopia (green-blind)
#4A4217
Tritanopia (blue-blind)
#2F473F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2e4a12;
/* rgb */ color: rgb(46, 74, 18);
/* oklch */ color: oklch(37.4% 0.089 132.3);
Tailwind
colors: {
  custom: {
    50: '#697c53',
    500: '#2e4a12',
    950: '#000000',
  },
}
SCSS
$custom: #2e4a12;
$custom-light: #697c53;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4a12",
  "rgb": {
    "r": 46,
    "g": 74,
    "b": 18
  },
  "hsl": {
    "h": 90,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37365,
    "c": 0.08852,
    "h": 132.3
  },
  "luminance": 0.05522
}

Semantic roles & 50–950 ramp

primary
#2E4A12
secondary
#5C3583
accent
#44E494
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2E4A12

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

Preview Lab → · Contrast checker → · Palette generator →

#2E4A12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva