#2F571B#2F571B

#2F571B is a dark, moderate green. Relative luminance 0.075; OKLCH L 41.3% C 0.100 H 136.8°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#2F571B
RGBrgb(47, 87, 27)
HSLhsl(100, 53%, 22%)
HSVhsv(100, 69%, 34%)
CMYKcmyk(46%, 0%, 69%, 65.9%)
CIE-LABlab(32.92, -26.32, 29.60)
CIE-LCHlch(32.92, 39.61, 131.64°)
OKLaboklab(41.28% -0.0728 0.0684)
OKLCHoklch(41.28% 0.1 136.8)
XYZxyz(4.7782, 7.4996, 2.2325)
Luminance0.0750 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F571B #431B57
analogous
#4D571B #2F571B #1B5725
triadic
#2F571B #1B2F57 #571B2F
tetradic
#2F571B #1B4D57 #431B57 #57251B
square
#2F571B #1B4D57 #431B57 #57251B
split-complementary
#2F571B #251B57 #571B4D
monochromatic
#0D1707 #16280D #2F571B #488629 #61B438

Accessibility & contrast

On white

8.40
#2F571B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2F571B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F571B
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F571B#FFFFFF#000000##FFFFFF
##2F571B1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A5014
Deuteranopia (green-blind)
#554C20
Tritanopia (blue-blind)
#2D544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f571b;
/* rgb */ color: rgb(47, 87, 27);
/* oklch */ color: oklch(41.3% 0.100 136.8);
Tailwind
colors: {
  custom: {
    50: '#6b875a',
    500: '#2f571b',
    950: '#000000',
  },
}
SCSS
$custom: #2f571b;
$custom-light: #6b875a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f571b",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 100,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.41284,
    "c": 0.09993,
    "h": 136.8
  },
  "luminance": 0.075
}

Semantic roles & 50–950 ramp

primary
#2F571B
secondary
#74418D
accent
#4CDCAC
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2F571B

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

Preview Lab → · Contrast checker → · Palette generator →

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