#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 |
|---|---|
| RGB | rgb(45, 126, 64) |
| HSL | hsl(134, 47%, 34%) |
| HSV | hsv(134, 64%, 49%) |
| CMYK | cmyk(64.3%, 0%, 49.2%, 50.6%) |
| CIE-LAB | lab(46.78, -38.81, 26.58) |
| CIE-LCH | lch(46.78, 47.04, 145.59°) |
| OKLab | oklab(52.8% -0.1048 0.0648) |
| OKLCH | oklch(52.8% 0.123 148.3) |
| XYZ | xyz(9.4678, 15.8488, 7.4097) |
| Luminance | 0.1585 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 1.72
Jungle Green
#048243
ΔE00 2.71
Sea Green
#2E8B57
ΔE00 5.74
Tree Green
#2A7E19
ΔE00 6.46
Dark Sea Green
#11875D
ΔE00 7.05
Dark Sage
#598556
ΔE00 7.20
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 |
|---|---|---|---|---|
| ##2D7E40 | 1.00 | 5.04 | 4.17 | 5.04 |
| #FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.04 | 1.00 | 21.00 | 1.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