#2C7840#2C7840

#2C7840 is a mid, moderate green. Relative luminance 0.143; OKLCH L 51.1% C 0.115 H 149.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#2C7840
RGBrgb(44, 120, 64)
HSLhsl(136, 46%, 32%)
HSVhsv(136, 63%, 47%)
CMYKcmyk(63.3%, 0%, 46.7%, 52.9%)
CIE-LABlab(44.71, -36.53, 23.95)
CIE-LCHlch(44.71, 43.69, 146.75°)
OKLaboklab(51.1% -0.0987 0.0588)
OKLCHoklch(51.1% 0.115 149.2)
XYZxyz(8.6800, 14.3377, 7.1595)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7840 #782C64
analogous
#3E782C #2C7840 #2C7866
triadic
#2C7840 #402C78 #78402C
tetradic
#2C7840 #2C3E78 #782C64 #78662C
square
#2C7840 #2C3E78 #782C64 #78662C
split-complementary
#2C7840 #662C78 #782C3E
monochromatic
#0B1E10 #1C4B28 #2C7840 #3CA558 #5BC377

Accessibility & contrast

On white

5.43
#2C7840 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2C7840
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7840#FFFFFF#000000##FFFFFF
##2C78401.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c7840;
/* rgb */ color: rgb(44, 120, 64);
/* oklch */ color: oklch(51.1% 0.115 149.2);
Tailwind
colors: {
  custom: {
    50: '#6ea075',
    500: '#2c7840',
    950: '#000000',
  },
}
SCSS
$custom: #2c7840;
$custom-light: #6ea075;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7840",
  "rgb": {
    "r": 44,
    "g": 120,
    "b": 64
  },
  "hsl": {
    "h": 135.789,
    "s": 46.341,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51096,
    "c": 0.1149,
    "h": 149.2
  },
  "luminance": 0.14339
}

Semantic roles & 50–950 ramp

primary
#2C7840
secondary
#A95793
accent
#52B3D6
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2C7840

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

Preview Lab → · Contrast checker → · Palette generator →

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