#2F851F#2F851F

#2F851F is a mid, vivid green. Relative luminance 0.175; OKLCH L 54.4% C 0.159 H 140.9°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#2F851F
RGBrgb(47, 133, 31)
HSLhsl(111, 62%, 32%)
HSVhsv(111, 77%, 52%)
CMYKcmyk(64.7%, 0%, 76.7%, 47.8%)
CIE-LABlab(48.86, -45.04, 44.50)
CIE-LCHlch(48.86, 63.31, 135.35°)
OKLaboklab(54.43% -0.1232 0.1002)
OKLCHoklch(54.43% 0.159 140.9)
XYZxyz(9.8067, 17.4774, 4.1527)
Luminance0.1748 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F851F #751F85
analogous
#62851F #2F851F #1F8542
triadic
#2F851F #1F2F85 #851F2F
tetradic
#2F851F #1F6285 #751F85 #85421F
square
#2F851F #1F6285 #751F85 #85421F
split-complementary
#2F851F #421F85 #851F62
monochromatic
#0C2208 #1D5313 #2F851F #41B72B #5FD54A

Accessibility & contrast

On white

4.67
#2F851F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#2F851F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F851F
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F851F#FFFFFF#000000##FFFFFF
##2F851F1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#89780A
Deuteranopia (green-blind)
#7E712A
Tritanopia (blue-blind)
#218171
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f851f;
/* rgb */ color: rgb(47, 133, 31);
/* oklch */ color: oklch(54.4% 0.159 140.9);
Tailwind
colors: {
  custom: {
    50: '#73a962',
    500: '#2f851f',
    950: '#000000',
  },
}
SCSS
$custom: #2f851f;
$custom-light: #73a962;
$custom-dark: #000000;
JSON
{
  "hex": "#2f851f",
  "rgb": {
    "r": 47,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 110.588,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54425,
    "c": 0.15884,
    "h": 140.9
  },
  "luminance": 0.17478
}

Semantic roles & 50–950 ramp

primary
#2F851F
secondary
#A649B7
accent
#43E5CC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2F851F

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

Preview Lab → · Contrast checker → · Palette generator →

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