#2D7E40#2D7E40

#2D7E40 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.123 H 148.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2D7E40
RGBrgb(45, 126, 64)
HSLhsl(134, 47%, 34%)
HSVhsv(134, 64%, 49%)
CMYKcmyk(64.3%, 0%, 49.2%, 50.6%)
CIE-LABlab(46.78, -38.81, 26.58)
CIE-LCHlch(46.78, 47.04, 145.59°)
OKLaboklab(52.8% -0.1048 0.0648)
OKLCHoklch(52.8% 0.123 148.3)
XYZxyz(9.4678, 15.8488, 7.4097)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7E40 #7E2D6B
analogous
#427E2D #2D7E40 #2D7E68
triadic
#2D7E40 #402D7E #7E402D
tetradic
#2D7E40 #2D427E #7E2D6B #7E682D
square
#2D7E40 #2D427E #7E2D6B #7E682D
split-complementary
#2D7E40 #682D7E #7E2D42
monochromatic
#0D2412 #1D5129 #2D7E40 #3DAB57 #5FC677

Accessibility & contrast

On white

5.04
#2D7E40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2D7E40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7E40
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7E40#FFFFFF#000000##FFFFFF
##2D7E401.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F733B
Deuteranopia (green-blind)
#756C44
Tritanopia (blue-blind)
#167B6F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7e40;
/* rgb */ color: rgb(45, 126, 64);
/* oklch */ color: oklch(52.8% 0.123 148.3);
Tailwind
colors: {
  custom: {
    50: '#6fa476',
    500: '#2d7e40',
    950: '#000000',
  },
}
SCSS
$custom: #2d7e40;
$custom-light: #6fa476;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7e40",
  "rgb": {
    "r": 45,
    "g": 126,
    "b": 64
  },
  "hsl": {
    "h": 134.074,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.52802,
    "c": 0.12322,
    "h": 148.3
  },
  "luminance": 0.1585
}

Semantic roles & 50–950 ramp

primary
#2D7E40
secondary
#AC5A99
accent
#51B8D7
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2D7E40

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

Preview Lab → · Contrast checker → · Palette generator →

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