#2E4C0F#2E4C0F

#2E4C0F is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 37.9% C 0.094 H 132.4°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#2E4C0F
RGBrgb(46, 76, 15)
HSLhsl(90, 67%, 18%)
HSVhsv(90, 80%, 30%)
CMYKcmyk(39.5%, 0%, 80.3%, 70.2%)
CIE-LABlab(28.86, -22.44, 30.85)
CIE-LCHlch(28.86, 38.15, 126.03°)
OKLaboklab(37.92% -0.0632 0.0692)
OKLCHoklch(37.92% 0.094 132.4)
XYZxyz(3.7973, 5.7841, 1.3682)
Luminance0.0578 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4C0F #2D0F4C
analogous
#4C4B0F #2E4C0F #104C0F
triadic
#2E4C0F #0F2E4C #4C0F2E
tetradic
#2E4C0F #0F4C4B #2D0F4C #4C0F10
square
#2E4C0F #0F4C4B #2D0F4C #4C0F10
split-complementary
#2E4C0F #0F104C #4B0F4C
monochromatic
#0F1A05 #0F1A05 #2E4C0F #4D7F19 #6CB223

Accessibility & contrast

On white

9.74
#2E4C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E4C0F
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4C0F#FFFFFF#000000##FFFFFF
##2E4C0F1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504605
Deuteranopia (green-blind)
#4B4315
Tritanopia (blue-blind)
#2F4940
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e4c0f;
/* rgb */ color: rgb(46, 76, 15);
/* oklch */ color: oklch(37.9% 0.094 132.4);
Tailwind
colors: {
  custom: {
    50: '#6a7e52',
    500: '#2e4c0f',
    950: '#000000',
  },
}
SCSS
$custom: #2e4c0f;
$custom-light: #6a7e52;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4c0f",
  "rgb": {
    "r": 46,
    "g": 76,
    "b": 15
  },
  "hsl": {
    "h": 89.508,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37919,
    "c": 0.09377,
    "h": 132.4
  },
  "luminance": 0.05784
}

Semantic roles & 50–950 ramp

primary
#2E4C0F
secondary
#5B3186
accent
#3EEA92
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2E4C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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