#2F851B#2F851B

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

Color values

HEX#2F851B
RGBrgb(47, 133, 27)
HSLhsl(109, 66%, 31%)
HSVhsv(109, 80%, 52%)
CMYKcmyk(64.7%, 0%, 79.7%, 47.8%)
CIE-LABlab(48.83, -45.33, 45.90)
CIE-LCHlch(48.83, 64.51, 134.64°)
OKLaboklab(54.4% -0.1242 0.1026)
OKLCHoklch(54.4% 0.161 140.5)
XYZxyz(9.7572, 17.4576, 3.8922)
Luminance0.1746 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F851B #711B85
analogous
#64851B #2F851B #1B853C
triadic
#2F851B #1B2F85 #851B2F
tetradic
#2F851B #1B6485 #711B85 #853C1B
square
#2F851B #1B6485 #711B85 #853C1B
split-complementary
#2F851B #3C1B85 #851B64
monochromatic
#0B1F06 #1D5211 #2F851B #41B825 #5ED942

Accessibility & contrast

On white

4.68
#2F851B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#2F851B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F851B
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F851B#FFFFFF#000000##FFFFFF
##2F851B1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#7E7127
Tritanopia (blue-blind)
#228171
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f851b;
/* rgb */ color: rgb(47, 133, 27);
/* oklch */ color: oklch(54.4% 0.161 140.5);
Tailwind
colors: {
  custom: {
    50: '#74a960',
    500: '#2f851b',
    950: '#000000',
  },
}
SCSS
$custom: #2f851b;
$custom-light: #74a960;
$custom-dark: #000000;
JSON
{
  "hex": "#2f851b",
  "rgb": {
    "r": 47,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 108.679,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54397,
    "c": 0.16109,
    "h": 140.5
  },
  "luminance": 0.17459
}

Semantic roles & 50–950 ramp

primary
#2F851B
secondary
#A244B8
accent
#3FE9C9
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2F851B

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

Preview Lab → · Contrast checker → · Palette generator →

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