#2F8342#2F8342

#2F8342 is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.3% C 0.128 H 148.0°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#2F8342
RGBrgb(47, 131, 66)
HSLhsl(134, 47%, 35%)
HSVhsv(134, 64%, 51%)
CMYKcmyk(64.1%, 0%, 49.6%, 48.6%)
CIE-LABlab(48.55, -40.07, 27.74)
CIE-LCHlch(48.55, 48.73, 145.30°)
OKLaboklab(54.29% -0.1082 0.0675)
OKLCHoklch(54.29% 0.128 148)
XYZxyz(10.2712, 17.2293, 7.9375)
Luminance0.1723 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8342 #832F70
analogous
#46832F #2F8342 #2F836C
triadic
#2F8342 #422F83 #83422F
tetradic
#2F8342 #2F4683 #832F70 #836C2F
square
#2F8342 #2F4683 #832F70 #836C2F
split-complementary
#2F8342 #6C2F83 #832F46
monochromatic
#0F2915 #1F562B #2F8342 #3FB059 #65C87B

Accessibility & contrast

On white

4.72
#2F8342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#2F8342 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8342
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8342#FFFFFF#000000##FFFFFF
##2F83421.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84783D
Deuteranopia (green-blind)
#7A7047
Tritanopia (blue-blind)
#178074
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2f8342;
/* rgb */ color: rgb(47, 131, 66);
/* oklch */ color: oklch(54.3% 0.128 148.0);
Tailwind
colors: {
  custom: {
    50: '#71a877',
    500: '#2f8342',
    950: '#000000',
  },
}
SCSS
$custom: #2f8342;
$custom-light: #71a877;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8342",
  "rgb": {
    "r": 47,
    "g": 131,
    "b": 66
  },
  "hsl": {
    "h": 133.571,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.54288,
    "c": 0.12755,
    "h": 148
  },
  "luminance": 0.1723
}

Semantic roles & 50–950 ramp

primary
#2F8342
secondary
#AF5F9D
accent
#51B9D7
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #2F8342

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

Preview Lab → · Contrast checker → · Palette generator →

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