#2C7240#2C7240

#2C7240 is a mid, moderate green. Relative luminance 0.129; OKLCH L 49.4% C 0.106 H 150.1°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#2C7240
RGBrgb(44, 114, 64)
HSLhsl(137, 44%, 31%)
HSVhsv(137, 61%, 45%)
CMYKcmyk(61.4%, 0%, 43.9%, 55.3%)
CIE-LABlab(42.67, -33.95, 21.32)
CIE-LCHlch(42.67, 40.09, 147.87°)
OKLaboklab(49.42% -0.0918 0.0527)
OKLCHoklch(49.42% 0.106 150.1)
XYZxyz(7.9809, 12.9395, 6.9265)
Luminance0.1294 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7240 #722C5E
analogous
#3B722C #2C7240 #2C7263
triadic
#2C7240 #402C72 #72402C
tetradic
#2C7240 #2C3B72 #722C5E #72632C
square
#2C7240 #2C3B72 #722C5E #72632C
split-complementary
#2C7240 #632C72 #722C3B
monochromatic
#0A1A0E #1B4627 #2C7240 #3D9E59 #59BF76

Accessibility & contrast

On white

5.85
#2C7240 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#2C7240 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7240
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7240#FFFFFF#000000##FFFFFF
##2C72401.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73693C
Deuteranopia (green-blind)
#696243
Tritanopia (blue-blind)
#197066
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2c7240;
/* rgb */ color: rgb(44, 114, 64);
/* oklch */ color: oklch(49.4% 0.106 150.1);
Tailwind
colors: {
  custom: {
    50: '#6d9b75',
    500: '#2c7240',
    950: '#000000',
  },
}
SCSS
$custom: #2c7240;
$custom-light: #6d9b75;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7240",
  "rgb": {
    "r": 44,
    "g": 114,
    "b": 64
  },
  "hsl": {
    "h": 137.143,
    "s": 44.304,
    "l": 30.98
  },
  "oklch": {
    "l": 0.49418,
    "c": 0.1059,
    "h": 150.1
  },
  "luminance": 0.1294
}

Semantic roles & 50–950 ramp

primary
#2C7240
secondary
#A4568D
accent
#54AFD4
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #2C7240

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

Preview Lab → · Contrast checker → · Palette generator →

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