#2E4C17#2E4C17

#2E4C17 is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 38.0% C 0.087 H 134.0°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2E4C17
RGBrgb(46, 76, 23)
HSLhsl(94, 54%, 19%)
HSVhsv(94, 70%, 30%)
CMYKcmyk(39.5%, 0%, 69.7%, 70.2%)
CIE-LABlab(28.93, -21.72, 27.20)
CIE-LCHlch(28.93, 34.81, 128.61°)
OKLaboklab(38% -0.0606 0.0628)
OKLCHoklch(38% 0.087 134)
XYZxyz(3.8657, 5.8114, 1.7285)
Luminance0.0581 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4C17 #35174C
analogous
#494C17 #2E4C17 #174C1B
triadic
#2E4C17 #172E4C #4C172E
tetradic
#2E4C17 #17494C #35174C #4C1B17
square
#2E4C17 #17494C #35174C #4C1B17
split-complementary
#2E4C17 #1B174C #4C1749
monochromatic
#0E1707 #121D09 #2E4C17 #4A7B25 #67AA33

Accessibility & contrast

On white

9.71
#2E4C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2E4C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4C17
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4C17#FFFFFF#000000##FFFFFF
##2E4C171.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4611
Deuteranopia (green-blind)
#4B431B
Tritanopia (blue-blind)
#2E4941
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e4c17;
/* rgb */ color: rgb(46, 76, 23);
/* oklch */ color: oklch(38.0% 0.087 134.0);
Tailwind
colors: {
  custom: {
    50: '#697e57',
    500: '#2e4c17',
    950: '#000000',
  },
}
SCSS
$custom: #2e4c17;
$custom-light: #697e57;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4c17",
  "rgb": {
    "r": 46,
    "g": 76,
    "b": 23
  },
  "hsl": {
    "h": 93.962,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.37999,
    "c": 0.08726,
    "h": 134
  },
  "luminance": 0.05812
}

Semantic roles & 50–950 ramp

primary
#2E4C17
secondary
#643C83
accent
#4BDD9E
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2E4C17

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

Preview Lab → · Contrast checker → · Palette generator →

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