#2E7B40#2E7B40

#2E7B40 is a mid, moderate green. Relative luminance 0.151; OKLCH L 52.0% C 0.118 H 148.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#2E7B40
RGBrgb(46, 123, 64)
HSLhsl(134, 46%, 33%)
HSVhsv(134, 63%, 48%)
CMYKcmyk(62.6%, 0%, 48%, 51.8%)
CIE-LABlab(45.79, -37.32, 25.34)
CIE-LCHlch(45.79, 45.11, 145.82°)
OKLaboklab(52% -0.1009 0.062)
OKLCHoklch(52% 0.118 148.4)
XYZxyz(9.1344, 15.1160, 7.2858)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7B40 #7B2E69
analogous
#427B2E #2E7B40 #2E7B66
triadic
#2E7B40 #402E7B #7B402E
tetradic
#2E7B40 #2E427B #7B2E69 #7B662E
square
#2E7B40 #2E427B #7B2E69 #7B662E
split-complementary
#2E7B40 #662E7B #7B2E42
monochromatic
#0D2212 #1D4E29 #2E7B40 #3FA857 #60C377

Accessibility & contrast

On white

5.22
#2E7B40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2E7B40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7B40
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7B40#FFFFFF#000000##FFFFFF
##2E7B401.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C713B
Deuteranopia (green-blind)
#726A44
Tritanopia (blue-blind)
#19796D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2e7b40;
/* rgb */ color: rgb(46, 123, 64);
/* oklch */ color: oklch(52.0% 0.118 148.4);
Tailwind
colors: {
  custom: {
    50: '#6fa276',
    500: '#2e7b40',
    950: '#000000',
  },
}
SCSS
$custom: #2e7b40;
$custom-light: #6fa276;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7b40",
  "rgb": {
    "r": 46,
    "g": 123,
    "b": 64
  },
  "hsl": {
    "h": 134.026,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52002,
    "c": 0.11839,
    "h": 148.4
  },
  "luminance": 0.15117
}

Semantic roles & 50–950 ramp

primary
#2E7B40
secondary
#AA5B98
accent
#53B7D5
background
#F7FAF7
surface
#EDF3ED
border
#C8CDC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2E7B40

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

Preview Lab → · Contrast checker → · Palette generator →

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