#2F831B#2F831B

#2F831B is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.8% C 0.159 H 140.4°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#2F831B
RGBrgb(47, 131, 27)
HSLhsl(108, 66%, 31%)
HSVhsv(108, 79%, 51%)
CMYKcmyk(64.1%, 0%, 79.4%, 48.6%)
CIE-LABlab(48.15, -44.59, 45.24)
CIE-LCHlch(48.15, 63.52, 134.59°)
OKLaboklab(53.84% -0.1222 0.1012)
OKLCHoklch(53.84% 0.159 140.4)
XYZxyz(9.4860, 16.9152, 3.8018)
Luminance0.1692 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F831B #6F1B83
analogous
#63831B #2F831B #1B833B
triadic
#2F831B #1B2F83 #831B2F
tetradic
#2F831B #1B6383 #6F1B83 #833B1B
square
#2F831B #1B6383 #6F1B83 #833B1B
split-complementary
#2F831B #3B1B83 #831B63
monochromatic
#0B1E06 #1D5011 #2F831B #41B625 #5ED841

Accessibility & contrast

On white

4.79
#2F831B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#2F831B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F831B
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F831B#FFFFFF#000000##FFFFFF
##2F831B1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877602
Deuteranopia (green-blind)
#7C7027
Tritanopia (blue-blind)
#227F6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2f831b;
/* rgb */ color: rgb(47, 131, 27);
/* oklch */ color: oklch(53.8% 0.159 140.4);
Tailwind
colors: {
  custom: {
    50: '#73a860',
    500: '#2f831b',
    950: '#000000',
  },
}
SCSS
$custom: #2f831b;
$custom-light: #73a860;
$custom-dark: #000000;
JSON
{
  "hex": "#2f831b",
  "rgb": {
    "r": 47,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 108.462,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53835,
    "c": 0.1587,
    "h": 140.4
  },
  "luminance": 0.16916
}

Semantic roles & 50–950 ramp

primary
#2F831B
secondary
#A043B6
accent
#3FE9C8
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2F831B

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

Preview Lab → · Contrast checker → · Palette generator →

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