#2F7342#2F7342

#2F7342 is a mid, moderate green. Relative luminance 0.133; OKLCH L 49.9% C 0.104 H 150.2°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#2F7342
RGBrgb(47, 115, 66)
HSLhsl(137, 42%, 32%)
HSVhsv(137, 59%, 45%)
CMYKcmyk(59.1%, 0%, 42.6%, 54.9%)
CIE-LABlab(43.15, -33.26, 20.82)
CIE-LCHlch(43.15, 39.24, 147.95°)
OKLaboklab(49.85% -0.09 0.0516)
OKLCHoklch(49.85% 0.104 150.2)
XYZxyz(8.2858, 13.2584, 7.2757)
Luminance0.1326 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7342 #732F60
analogous
#3E732F #2F7342 #2F7364
triadic
#2F7342 #422F73 #73422F
tetradic
#2F7342 #2F3E73 #732F60 #73642F
square
#2F7342 #2F3E73 #732F60 #73642F
split-complementary
#2F7342 #642F73 #732F3E
monochromatic
#0B1C10 #1D4829 #2F7342 #419E5B #5FBE79

Accessibility & contrast

On white

5.75
#2F7342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#2F7342 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7342
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7342#FFFFFF#000000##FFFFFF
##2F73421.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746A3F
Deuteranopia (green-blind)
#6A6345
Tritanopia (blue-blind)
#1E7167
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2f7342;
/* rgb */ color: rgb(47, 115, 66);
/* oklch */ color: oklch(49.9% 0.104 150.2);
Tailwind
colors: {
  custom: {
    50: '#6e9c77',
    500: '#2f7342',
    950: '#000000',
  },
}
SCSS
$custom: #2f7342;
$custom-light: #6e9c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7342",
  "rgb": {
    "r": 47,
    "g": 115,
    "b": 66
  },
  "hsl": {
    "h": 136.765,
    "s": 41.975,
    "l": 31.765
  },
  "oklch": {
    "l": 0.49851,
    "c": 0.1038,
    "h": 150.2
  },
  "luminance": 0.13259
}

Semantic roles & 50–950 ramp

primary
#2F7342
secondary
#A45A8F
accent
#56AFD2
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#080E08
muted
#7B7E7B

Preview Lab

Preview with #2F7342

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

Preview Lab → · Contrast checker → · Palette generator →

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