#2D7E31#2D7E31

#2D7E31 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.6% C 0.137 H 144.1°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2D7E31
RGBrgb(45, 126, 49)
HSLhsl(123, 47%, 34%)
HSVhsv(123, 64%, 49%)
CMYKcmyk(64.3%, 0%, 61.1%, 50.6%)
CIE-LABlab(46.58, -41.03, 34.16)
CIE-LCHlch(46.58, 53.39, 140.22°)
OKLaboklab(52.58% -0.1112 0.0806)
OKLCHoklch(52.58% 0.137 144.1)
XYZxyz(9.0969, 15.7005, 5.4562)
Luminance0.1570 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7E31 #7E2D7A
analogous
#517E2D #2D7E31 #2D7E59
triadic
#2D7E31 #312D7E #7E312D
tetradic
#2D7E31 #2D517E #7E2D7A #7E592D
square
#2D7E31 #2D517E #7E2D7A #7E592D
split-complementary
#2D7E31 #592D7E #7E2D51
monochromatic
#0D240E #1D511F #2D7E31 #3DAB43 #5FC664

Accessibility & contrast

On white

5.07
#2D7E31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#2D7E31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7E31
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7E31#FFFFFF#000000##FFFFFF
##2D7E311.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807329
Deuteranopia (green-blind)
#766C37
Tritanopia (blue-blind)
#1C7B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2d7e31;
/* rgb */ color: rgb(45, 126, 49);
/* oklch */ color: oklch(52.6% 0.137 144.1);
Tailwind
colors: {
  custom: {
    50: '#70a46c',
    500: '#2d7e31',
    950: '#000000',
  },
}
SCSS
$custom: #2d7e31;
$custom-light: #70a46c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7e31",
  "rgb": {
    "r": 45,
    "g": 126,
    "b": 49
  },
  "hsl": {
    "h": 122.963,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.52577,
    "c": 0.13735,
    "h": 144.1
  },
  "luminance": 0.15701
}

Semantic roles & 50–950 ramp

primary
#2D7E31
secondary
#AC5AA8
accent
#51D0D7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2D7E31

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

Preview Lab → · Contrast checker → · Palette generator →

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