#2F8B31#2F8B31

#2F8B31 is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.3% C 0.154 H 143.5°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#2F8B31
RGBrgb(47, 139, 49)
HSLhsl(121, 49%, 36%)
HSVhsv(121, 66%, 55%)
CMYKcmyk(66.2%, 0%, 64.7%, 45.5%)
CIE-LABlab(51.02, -45.54, 39.24)
CIE-LCHlch(51.02, 60.12, 139.25°)
OKLaboklab(56.27% -0.1236 0.0914)
OKLCHoklch(56.27% 0.154 143.5)
XYZxyz(10.9586, 19.2902, 6.0510)
Luminance0.1929 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8B31 #8B2F89
analogous
#5B8B2F #2F8B31 #2F8B5F
triadic
#2F8B31 #312F8B #8B312F
tetradic
#2F8B31 #2F5B8B #8B2F89 #8B5F2F
square
#2F8B31 #2F5B8B #8B2F89 #8B5F2F
split-complementary
#2F8B31 #5F2F8B #8B2F5B
monochromatic
#103011 #205D21 #2F8B31 #3EB941 #68CC6B

Accessibility & contrast

On white

4.32
#2F8B31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#2F8B31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8B31
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8B31#FFFFFF#000000##000000
##2F8B311.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E26
Deuteranopia (green-blind)
#837739
Tritanopia (blue-blind)
#1A8778
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #2f8b31;
/* rgb */ color: rgb(47, 139, 49);
/* oklch */ color: oklch(56.3% 0.154 143.5);
Tailwind
colors: {
  custom: {
    50: '#74ae6d',
    500: '#2f8b31',
    950: '#000000',
  },
}
SCSS
$custom: #2f8b31;
$custom-light: #74ae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8b31",
  "rgb": {
    "r": 47,
    "g": 139,
    "b": 49
  },
  "hsl": {
    "h": 121.304,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.56266,
    "c": 0.15373,
    "h": 143.5
  },
  "luminance": 0.19291
}

Semantic roles & 50–950 ramp

primary
#2F8B31
secondary
#B363B1
accent
#4FD6D9
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #2F8B31

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

Preview Lab → · Contrast checker → · Palette generator →

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