#2D841F#2D841F

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

Color values

HEX#2D841F
RGBrgb(45, 132, 31)
HSLhsl(112, 62%, 32%)
HSVhsv(112, 77%, 52%)
CMYKcmyk(65.9%, 0%, 76.5%, 48.2%)
CIE-LABlab(48.46, -45.15, 44.08)
CIE-LCHlch(48.46, 63.10, 135.68°)
OKLaboklab(54.08% -0.1234 0.0994)
OKLCHoklch(54.08% 0.158 141.2)
XYZxyz(9.5803, 17.1584, 4.1031)
Luminance0.1716 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D841F #761F84
analogous
#60841F #2D841F #1F8444
triadic
#2D841F #1F2D84 #841F2D
tetradic
#2D841F #1F6084 #761F84 #84441F
square
#2D841F #1F6084 #761F84 #84441F
split-complementary
#2D841F #441F84 #841F60
monochromatic
#0B2108 #1C5213 #2D841F #3EB62B #5CD449

Accessibility & contrast

On white

4.74
#2D841F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#2D841F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D841F
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D841F#FFFFFF#000000##FFFFFF
##2D841F1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87770B
Deuteranopia (green-blind)
#7D702A
Tritanopia (blue-blind)
#1E8071
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2d841f;
/* rgb */ color: rgb(45, 132, 31);
/* oklch */ color: oklch(54.1% 0.158 141.2);
Tailwind
colors: {
  custom: {
    50: '#72a962',
    500: '#2d841f',
    950: '#000000',
  },
}
SCSS
$custom: #2d841f;
$custom-light: #72a962;
$custom-dark: #000000;
JSON
{
  "hex": "#2d841f",
  "rgb": {
    "r": 45,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 111.683,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5408,
    "c": 0.15843,
    "h": 141.2
  },
  "luminance": 0.17159
}

Semantic roles & 50–950 ramp

primary
#2D841F
secondary
#A748B7
accent
#43E5CF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2D841F

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

Preview Lab → · Contrast checker → · Palette generator →

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