#2D571F#2D571F

#2D571F is a dark, moderate green. Relative luminance 0.075; OKLCH L 41.2% C 0.097 H 138.6°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2D571F
RGBrgb(45, 87, 31)
HSLhsl(105, 47%, 23%)
HSVhsv(105, 64%, 34%)
CMYKcmyk(48.3%, 0%, 64.4%, 65.9%)
CIE-LABlab(32.86, -26.59, 27.48)
CIE-LCHlch(32.86, 38.24, 134.06°)
OKLaboklab(41.22% -0.0731 0.0644)
OKLCHoklch(41.22% 0.097 138.6)
XYZxyz(4.7375, 7.4729, 2.4888)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D571F #491F57
analogous
#49571F #2D571F #1F572D
triadic
#2D571F #1F2D57 #571F2D
tetradic
#2D571F #1F4957 #491F57 #572D1F
square
#2D571F #1F4957 #491F57 #572D1F
split-complementary
#2D571F #2D1F57 #571F49
monochromatic
#0C1708 #162A0F #2D571F #44842F #5CB13F

Accessibility & contrast

On white

8.42
#2D571F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2D571F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D571F
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D571F#FFFFFF#000000##FFFFFF
##2D571F1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A5019
Deuteranopia (green-blind)
#544C23
Tritanopia (blue-blind)
#2A544B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2d571f;
/* rgb */ color: rgb(45, 87, 31);
/* oklch */ color: oklch(41.2% 0.097 138.6);
Tailwind
colors: {
  custom: {
    50: '#6a875d',
    500: '#2d571f',
    950: '#000000',
  },
}
SCSS
$custom: #2d571f;
$custom-light: #6a875d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d571f",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 31
  },
  "hsl": {
    "h": 105,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.41223,
    "c": 0.09744,
    "h": 138.6
  },
  "luminance": 0.07473
}

Semantic roles & 50–950 ramp

primary
#2D571F
secondary
#7A468C
accent
#51D7B5
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2D571F

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

Preview Lab → · Contrast checker → · Palette generator →

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