#2F841F#2F841F

#2F841F is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.1% C 0.158 H 140.8°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#2F841F
RGBrgb(47, 132, 31)
HSLhsl(110, 62%, 32%)
HSVhsv(110, 77%, 52%)
CMYKcmyk(64.4%, 0%, 76.5%, 48.2%)
CIE-LABlab(48.52, -44.67, 44.16)
CIE-LCHlch(48.52, 62.81, 135.33°)
OKLaboklab(54.14% -0.1222 0.0995)
OKLCHoklch(54.14% 0.158 140.8)
XYZxyz(9.6704, 17.2049, 4.1073)
Luminance0.1721 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F841F #741F84
analogous
#62841F #2F841F #1F8442
triadic
#2F841F #1F2F84 #841F2F
tetradic
#2F841F #1F6284 #741F84 #84421F
square
#2F841F #1F6284 #741F84 #84421F
split-complementary
#2F841F #421F84 #841F62
monochromatic
#0C2108 #1D5213 #2F841F #41B62B #5FD449

Accessibility & contrast

On white

4.73
#2F841F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#2F841F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F841F
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F841F#FFFFFF#000000##FFFFFF
##2F841F1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88770B
Deuteranopia (green-blind)
#7D712A
Tritanopia (blue-blind)
#218071
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2f841f;
/* rgb */ color: rgb(47, 132, 31);
/* oklch */ color: oklch(54.1% 0.158 140.8);
Tailwind
colors: {
  custom: {
    50: '#73a962',
    500: '#2f841f',
    950: '#000000',
  },
}
SCSS
$custom: #2f841f;
$custom-light: #73a962;
$custom-dark: #000000;
JSON
{
  "hex": "#2f841f",
  "rgb": {
    "r": 47,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 110.495,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54144,
    "c": 0.15762,
    "h": 140.8
  },
  "luminance": 0.17206
}

Semantic roles & 50–950 ramp

primary
#2F841F
secondary
#A548B7
accent
#43E5CB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2F841F

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

Preview Lab → · Contrast checker → · Palette generator →

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