#2E4512#2E4512

#2E4512 is a dark, moderate yellow-green. Relative luminance 0.049; OKLCH L 35.9% C 0.081 H 130.4°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2E4512
RGBrgb(46, 69, 18)
HSLhsl(87, 59%, 17%)
HSVhsv(87, 74%, 27%)
CMYKcmyk(33.3%, 0%, 73.9%, 72.9%)
CIE-LABlab(26.39, -18.56, 26.95)
CIE-LCHlch(26.39, 32.72, 124.56°)
OKLaboklab(35.92% -0.0524 0.0616)
OKLCHoklch(35.92% 0.081 130.4)
XYZxyz(3.3640, 4.8807, 1.3370)
Luminance0.0488 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4512 #291245
analogous
#454312 #2E4512 #144512
triadic
#2E4512 #122E45 #45122E
tetradic
#2E4512 #124543 #291245 #451214
square
#2E4512 #124543 #291245 #451214
split-complementary
#2E4512 #121445 #431245
monochromatic
#101806 #101806 #2E4512 #4E761F #6FA62B

Accessibility & contrast

On white

10.63
#2E4512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E4512
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4512#FFFFFF#000000##FFFFFF
##2E45121.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48400B
Deuteranopia (green-blind)
#453E16
Tritanopia (blue-blind)
#2F423B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e4512;
/* rgb */ color: rgb(46, 69, 18);
/* oklch */ color: oklch(35.9% 0.081 130.4);
Tailwind
colors: {
  custom: {
    50: '#697953',
    500: '#2e4512',
    950: '#000000',
  },
}
SCSS
$custom: #2e4512;
$custom-light: #697953;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4512",
  "rgb": {
    "r": 46,
    "g": 69,
    "b": 18
  },
  "hsl": {
    "h": 87.059,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.35915,
    "c": 0.08084,
    "h": 130.4
  },
  "luminance": 0.04881
}

Semantic roles & 50–950 ramp

primary
#2E4512
secondary
#56357E
accent
#46E28C
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2E4512

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

Preview Lab → · Contrast checker → · Palette generator →

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