#2E4F18#2E4F18

#2E4F18 is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.9% C 0.091 H 135.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#2E4F18
RGBrgb(46, 79, 24)
HSLhsl(96, 53%, 20%)
HSVhsv(96, 70%, 31%)
CMYKcmyk(41.8%, 0%, 69.6%, 69%)
CIE-LABlab(30.01, -23.13, 27.88)
CIE-LCHlch(30.01, 36.22, 129.68°)
OKLaboklab(38.88% -0.0643 0.0644)
OKLCHoklch(38.88% 0.091 135)
XYZxyz(4.0875, 6.2386, 1.8528)
Luminance0.0624 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4F18 #39184F
analogous
#494F18 #2E4F18 #184F1D
triadic
#2E4F18 #182E4F #4F182E
tetradic
#2E4F18 #18494F #39184F #4F1D18
square
#2E4F18 #18494F #39184F #4F1D18
split-complementary
#2E4F18 #1D184F #4F1849
monochromatic
#0E1707 #13200A #2E4F18 #497E26 #65AD35

Accessibility & contrast

On white

9.34
#2E4F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2E4F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4F18
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4F18#FFFFFF#000000##FFFFFF
##2E4F181.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524811
Deuteranopia (green-blind)
#4E461C
Tritanopia (blue-blind)
#2D4C43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e4f18;
/* rgb */ color: rgb(46, 79, 24);
/* oklch */ color: oklch(38.9% 0.091 135.0);
Tailwind
colors: {
  custom: {
    50: '#6a8058',
    500: '#2e4f18',
    950: '#000000',
  },
}
SCSS
$custom: #2e4f18;
$custom-light: #6a8058;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4f18",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 24
  },
  "hsl": {
    "h": 96,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.38879,
    "c": 0.09101,
    "h": 135
  },
  "luminance": 0.06239
}

Semantic roles & 50–950 ramp

primary
#2E4F18
secondary
#693D86
accent
#4BDDA2
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2E4F18

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

Preview Lab → · Contrast checker → · Palette generator →

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