#2E4F12#2E4F12

#2E4F12 is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.8% C 0.096 H 133.8°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#2E4F12
RGBrgb(46, 79, 18)
HSLhsl(92, 63%, 19%)
HSVhsv(92, 77%, 31%)
CMYKcmyk(41.8%, 0%, 77.2%, 69%)
CIE-LABlab(29.95, -23.69, 30.66)
CIE-LCHlch(29.95, 38.74, 127.70°)
OKLaboklab(38.82% -0.0664 0.0693)
OKLCHoklch(38.82% 0.096 133.8)
XYZxyz(4.0318, 6.2163, 1.5596)
Luminance0.0622 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4F12 #33124F
analogous
#4D4F12 #2E4F12 #124F15
triadic
#2E4F12 #122E4F #4F122E
tetradic
#2E4F12 #124D4F #33124F #4F1512
square
#2E4F12 #124D4F #33124F #4F1512
split-complementary
#2E4F12 #15124F #4F124D
monochromatic
#0F1906 #111D07 #2E4F12 #4B811D #68B329

Accessibility & contrast

On white

9.36
#2E4F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2E4F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4F12
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4F12#FFFFFF#000000##FFFFFF
##2E4F121.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524808
Deuteranopia (green-blind)
#4E4618
Tritanopia (blue-blind)
#2E4C43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e4f12;
/* rgb */ color: rgb(46, 79, 18);
/* oklch */ color: oklch(38.8% 0.096 133.8);
Tailwind
colors: {
  custom: {
    50: '#6a8054',
    500: '#2e4f12',
    950: '#000000',
  },
}
SCSS
$custom: #2e4f12;
$custom-light: #6a8054;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4f12",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 92.459,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38817,
    "c": 0.09599,
    "h": 133.8
  },
  "luminance": 0.06216
}

Semantic roles & 50–950 ramp

primary
#2E4F12
secondary
#623588
accent
#42E69B
background
#F6F7F5
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2E4F12

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

Preview Lab → · Contrast checker → · Palette generator →

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