#2B7342#2B7342

#2B7342 is a mid, moderate green. Relative luminance 0.132; OKLCH L 49.7% C 0.106 H 151.1°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#2B7342
RGBrgb(43, 115, 66)
HSLhsl(139, 46%, 31%)
HSVhsv(139, 63%, 45%)
CMYKcmyk(62.6%, 0%, 42.6%, 54.9%)
CIE-LABlab(43.01, -34.25, 20.62)
CIE-LCHlch(43.01, 39.98, 148.95°)
OKLaboklab(49.7% -0.0926 0.0512)
OKLCHoklch(49.7% 0.106 151.1)
XYZxyz(8.1097, 13.1676, 7.2674)
Luminance0.1317 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7342 #732B5C
analogous
#38732B #2B7342 #2B7366
triadic
#2B7342 #422B73 #73422B
tetradic
#2B7342 #2B3873 #732B5C #73662B
square
#2B7342 #2B3873 #732B5C #73662B
split-complementary
#2B7342 #662B73 #732B38
monochromatic
#0A1A0F #1A4628 #2B7342 #3CA05C #58C179

Accessibility & contrast

On white

5.78
#2B7342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#2B7342 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7342
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7342#FFFFFF#000000##FFFFFF
##2B73421.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736A3F
Deuteranopia (green-blind)
#6A6345
Tritanopia (blue-blind)
#157167
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2b7342;
/* rgb */ color: rgb(43, 115, 66);
/* oklch */ color: oklch(49.7% 0.106 151.1);
Tailwind
colors: {
  custom: {
    50: '#6c9c77',
    500: '#2b7342',
    950: '#000000',
  },
}
SCSS
$custom: #2b7342;
$custom-light: #6c9c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7342",
  "rgb": {
    "r": 43,
    "g": 115,
    "b": 66
  },
  "hsl": {
    "h": 139.167,
    "s": 45.57,
    "l": 30.98
  },
  "oklch": {
    "l": 0.49702,
    "c": 0.10583,
    "h": 151.1
  },
  "luminance": 0.13168
}

Semantic roles & 50–950 ramp

primary
#2B7342
secondary
#A5558B
accent
#53ABD5
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #2B7342

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

Preview Lab → · Contrast checker → · Palette generator →

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