#2D7840#2D7840

#2D7840 is a mid, moderate green. Relative luminance 0.144; OKLCH L 51.1% C 0.114 H 149.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#2D7840
RGBrgb(45, 120, 64)
HSLhsl(135, 45%, 32%)
HSVhsv(135, 63%, 47%)
CMYKcmyk(62.5%, 0%, 46.7%, 52.9%)
CIE-LABlab(44.75, -36.29, 24.00)
CIE-LCHlch(44.75, 43.51, 146.52°)
OKLaboklab(51.13% -0.0981 0.0589)
OKLCHoklch(51.13% 0.114 149)
XYZxyz(8.7235, 14.3602, 7.1616)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7840 #782D65
analogous
#3F782D #2D7840 #2D7866
triadic
#2D7840 #402D78 #78402D
tetradic
#2D7840 #2D3F78 #782D65 #78662D
square
#2D7840 #2D3F78 #782D65 #78662D
split-complementary
#2D7840 #662D78 #782D3F
monochromatic
#0C1F11 #1C4B28 #2D7840 #3EA558 #5DC277

Accessibility & contrast

On white

5.42
#2D7840 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#2D7840 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7840
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7840#FFFFFF#000000##FFFFFF
##2D78401.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3C
Deuteranopia (green-blind)
#6F6744
Tritanopia (blue-blind)
#18766A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2d7840;
/* rgb */ color: rgb(45, 120, 64);
/* oklch */ color: oklch(51.1% 0.114 149.0);
Tailwind
colors: {
  custom: {
    50: '#6ea075',
    500: '#2d7840',
    950: '#000000',
  },
}
SCSS
$custom: #2d7840;
$custom-light: #6ea075;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7840",
  "rgb": {
    "r": 45,
    "g": 120,
    "b": 64
  },
  "hsl": {
    "h": 135.2,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.51131,
    "c": 0.11443,
    "h": 149
  },
  "luminance": 0.14361
}

Semantic roles & 50–950 ramp

primary
#2D7840
secondary
#A95894
accent
#53B4D5
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2D7840

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

Preview Lab → · Contrast checker → · Palette generator →

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