#2F811B#2F811B

#2F811B is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.3% C 0.156 H 140.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#2F811B
RGBrgb(47, 129, 27)
HSLhsl(108, 65%, 31%)
HSVhsv(108, 79%, 51%)
CMYKcmyk(63.6%, 0%, 79.1%, 49.4%)
CIE-LABlab(47.47, -43.85, 44.58)
CIE-LCHlch(47.47, 62.53, 134.53°)
OKLaboklab(53.27% -0.1202 0.0998)
OKLCHoklch(53.27% 0.156 140.3)
XYZxyz(9.2199, 16.3831, 3.7131)
Luminance0.1638 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F811B #6D1B81
analogous
#62811B #2F811B #1B813A
triadic
#2F811B #1B2F81 #811B2F
tetradic
#2F811B #1B6281 #6D1B81 #813A1B
square
#2F811B #1B6281 #6D1B81 #813A1B
split-complementary
#2F811B #3A1B81 #811B62
monochromatic
#0A1C06 #1D4E10 #2F811B #41B426 #5DD73F

Accessibility & contrast

On white

4.91
#2F811B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#2F811B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F811B
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F811B#FFFFFF#000000##FFFFFF
##2F811B1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857503
Deuteranopia (green-blind)
#7B6E26
Tritanopia (blue-blind)
#237D6E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2f811b;
/* rgb */ color: rgb(47, 129, 27);
/* oklch */ color: oklch(53.3% 0.156 140.3);
Tailwind
colors: {
  custom: {
    50: '#73a660',
    500: '#2f811b',
    950: '#000000',
  },
}
SCSS
$custom: #2f811b;
$custom-light: #73a660;
$custom-dark: #000000;
JSON
{
  "hex": "#2f811b",
  "rgb": {
    "r": 47,
    "g": 129,
    "b": 27
  },
  "hsl": {
    "h": 108.235,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53273,
    "c": 0.15628,
    "h": 140.3
  },
  "luminance": 0.16384
}

Semantic roles & 50–950 ramp

primary
#2F811B
secondary
#9E43B5
accent
#3FE8C7
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F811B

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

Preview Lab → · Contrast checker → · Palette generator →

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