#2F841B#2F841B

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

Color values

HEX#2F841B
RGBrgb(47, 132, 27)
HSLhsl(109, 66%, 31%)
HSVhsv(109, 80%, 52%)
CMYKcmyk(64.4%, 0%, 79.5%, 48.2%)
CIE-LABlab(48.49, -44.96, 45.57)
CIE-LCHlch(48.49, 64.02, 134.62°)
OKLaboklab(54.12% -0.1232 0.1019)
OKLCHoklch(54.12% 0.16 140.4)
XYZxyz(9.6209, 17.1851, 3.8467)
Luminance0.1719 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F841B #701B84
analogous
#63841B #2F841B #1B843B
triadic
#2F841B #1B2F84 #841B2F
tetradic
#2F841B #1B6384 #701B84 #843B1B
square
#2F841B #1B6384 #701B84 #843B1B
split-complementary
#2F841B #3B1B84 #841B63
monochromatic
#0B1E06 #1D5111 #2F841B #41B725 #5ED841

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F841B#FFFFFF#000000##FFFFFF
##2F841B1.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)
#887701
Deuteranopia (green-blind)
#7D7127
Tritanopia (blue-blind)
#228070
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2f841b;
/* rgb */ color: rgb(47, 132, 27);
/* oklch */ color: oklch(54.1% 0.160 140.4);
Tailwind
colors: {
  custom: {
    50: '#73a960',
    500: '#2f841b',
    950: '#000000',
  },
}
SCSS
$custom: #2f841b;
$custom-light: #73a960;
$custom-dark: #000000;
JSON
{
  "hex": "#2f841b",
  "rgb": {
    "r": 47,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 108.571,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54116,
    "c": 0.15989,
    "h": 140.4
  },
  "luminance": 0.17186
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F841B

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

Preview Lab → · Contrast checker → · Palette generator →

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