#2E4517#2E4517

#2E4517 is a dark, moderate yellow-green. Relative luminance 0.049; OKLCH L 36.0% C 0.076 H 131.6°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#2E4517
RGBrgb(46, 69, 23)
HSLhsl(90, 50%, 18%)
HSVhsv(90, 67%, 27%)
CMYKcmyk(33.3%, 0%, 66.7%, 72.9%)
CIE-LABlab(26.44, -18.05, 24.43)
CIE-LCHlch(26.44, 30.38, 126.46°)
OKLaboklab(35.98% -0.0505 0.0569)
OKLCHoklch(35.98% 0.076 131.6)
XYZxyz(3.4094, 4.8988, 1.5764)
Luminance0.0490 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4517 #2E1745
analogous
#454517 #2E4517 #174517
triadic
#2E4517 #172E45 #45172E
tetradic
#2E4517 #174545 #2E1745 #451717
square
#2E4517 #174545 #2E1745 #451717
split-complementary
#2E4517 #171745 #451745
monochromatic
#0F1708 #0F1708 #2E4517 #4D7326 #6BA136

Accessibility & contrast

On white

10.61
#2E4517 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2E4517 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4517
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4517#FFFFFF#000000##FFFFFF
##2E45171.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484012
Deuteranopia (green-blind)
#453E1A
Tritanopia (blue-blind)
#2F423B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e4517;
/* rgb */ color: rgb(46, 69, 23);
/* oklch */ color: oklch(36.0% 0.076 131.6);
Tailwind
colors: {
  custom: {
    50: '#687956',
    500: '#2e4517',
    950: '#000000',
  },
}
SCSS
$custom: #2e4517;
$custom-light: #687956;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4517",
  "rgb": {
    "r": 46,
    "g": 69,
    "b": 23
  },
  "hsl": {
    "h": 90,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.35975,
    "c": 0.0761,
    "h": 131.6
  },
  "luminance": 0.04899
}

Semantic roles & 50–950 ramp

primary
#2E4517
secondary
#5C3C7C
accent
#4EDA94
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2E4517

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

Preview Lab → · Contrast checker → · Palette generator →

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