#2C7B40#2C7B40

#2C7B40 is a mid, moderate green. Relative luminance 0.151; OKLCH L 51.9% C 0.119 H 148.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2C7B40
RGBrgb(44, 123, 64)
HSLhsl(135, 47%, 33%)
HSVhsv(135, 64%, 48%)
CMYKcmyk(64.2%, 0%, 48%, 51.8%)
CIE-LABlab(45.73, -37.79, 25.25)
CIE-LCHlch(45.73, 45.45, 146.25°)
OKLaboklab(51.93% -0.1021 0.0618)
OKLCHoklch(51.93% 0.119 148.8)
XYZxyz(9.0464, 15.0707, 7.2817)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7B40 #7B2C67
analogous
#3F7B2C #2C7B40 #2C7B67
triadic
#2C7B40 #402C7B #7B402C
tetradic
#2C7B40 #2C3F7B #7B2C67 #7B672C
square
#2C7B40 #2C3F7B #7B2C67 #7B672C
split-complementary
#2C7B40 #672C7B #7B2C3F
monochromatic
#0C2111 #1C4E29 #2C7B40 #3CA857 #5DC577

Accessibility & contrast

On white

5.23
#2C7B40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#2C7B40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7B40
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7B40#FFFFFF#000000##FFFFFF
##2C7B401.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C713B
Deuteranopia (green-blind)
#726944
Tritanopia (blue-blind)
#15796D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2c7b40;
/* rgb */ color: rgb(44, 123, 64);
/* oklch */ color: oklch(51.9% 0.119 148.8);
Tailwind
colors: {
  custom: {
    50: '#6ea276',
    500: '#2c7b40',
    950: '#000000',
  },
}
SCSS
$custom: #2c7b40;
$custom-light: #6ea276;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7b40",
  "rgb": {
    "r": 44,
    "g": 123,
    "b": 64
  },
  "hsl": {
    "h": 135.19,
    "s": 47.305,
    "l": 32.745
  },
  "oklch": {
    "l": 0.51934,
    "c": 0.11932,
    "h": 148.8
  },
  "luminance": 0.15072
}

Semantic roles & 50–950 ramp

primary
#2C7B40
secondary
#AB5896
accent
#51B5D7
background
#F7FAF7
surface
#EDF3ED
border
#C8CDC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2C7B40

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

Preview Lab → · Contrast checker → · Palette generator →

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