#2E4F17#2E4F17

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

Color values

HEX#2E4F17
RGBrgb(46, 79, 23)
HSLhsl(95, 55%, 20%)
HSVhsv(95, 71%, 31%)
CMYKcmyk(41.8%, 0%, 70.9%, 69%)
CIE-LABlab(30.00, -23.23, 28.36)
CIE-LCHlch(30.00, 36.66, 129.32°)
OKLaboklab(38.87% -0.0647 0.0653)
OKLCHoklch(38.87% 0.092 134.7)
XYZxyz(4.0773, 6.2345, 1.7990)
Luminance0.0624 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4F17 #38174F
analogous
#4A4F17 #2E4F17 #174F1C
triadic
#2E4F17 #172E4F #4F172E
tetradic
#2E4F17 #174A4F #38174F #4F1C17
square
#2E4F17 #174A4F #38174F #4F1C17
split-complementary
#2E4F17 #1C174F #4F174A
monochromatic
#0E1807 #122009 #2E4F17 #4A7E25 #65AE33

Accessibility & contrast

On white

9.35
#2E4F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E4F17
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4F17#FFFFFF#000000##FFFFFF
##2E4F171.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e4f17;
/* rgb */ color: rgb(46, 79, 23);
/* oklch */ color: oklch(38.9% 0.092 134.7);
Tailwind
colors: {
  custom: {
    50: '#6a8057',
    500: '#2e4f17',
    950: '#000000',
  },
}
SCSS
$custom: #2e4f17;
$custom-light: #6a8057;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4f17",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 23
  },
  "hsl": {
    "h": 95.357,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.38868,
    "c": 0.0919,
    "h": 134.7
  },
  "luminance": 0.06235
}

Semantic roles & 50–950 ramp

primary
#2E4F17
secondary
#683C86
accent
#4ADEA1
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2E4F17

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

Preview Lab → · Contrast checker → · Palette generator →

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