#2F571C#2F571C

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

Color values

HEX#2F571C
RGBrgb(47, 87, 28)
HSLhsl(101, 51%, 23%)
HSVhsv(101, 68%, 34%)
CMYKcmyk(46%, 0%, 67.8%, 65.9%)
CIE-LABlab(32.93, -26.21, 29.12)
CIE-LCHlch(32.93, 39.18, 132.00°)
OKLaboklab(41.3% -0.0725 0.0675)
OKLCHoklch(41.3% 0.099 137)
XYZxyz(4.7899, 7.5043, 2.2945)
Luminance0.0751 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F571C #441C57
analogous
#4C571C #2F571C #1C5727
triadic
#2F571C #1C2F57 #571C2F
tetradic
#2F571C #1C4C57 #441C57 #57271C
square
#2F571C #1C4C57 #441C57 #57271C
split-complementary
#2F571C #271C57 #571C4C
monochromatic
#0D1707 #16290D #2F571C #48852B #61B43A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F571C#FFFFFF#000000##FFFFFF
##2F571C1.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)
#5A5015
Deuteranopia (green-blind)
#554C21
Tritanopia (blue-blind)
#2D544B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f571c;
/* rgb */ color: rgb(47, 87, 28);
/* oklch */ color: oklch(41.3% 0.099 137.0);
Tailwind
colors: {
  custom: {
    50: '#6b875b',
    500: '#2f571c',
    950: '#000000',
  },
}
SCSS
$custom: #2f571c;
$custom-light: #6b875b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f571c",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 28
  },
  "hsl": {
    "h": 100.678,
    "s": 51.304,
    "l": 22.549
  },
  "oklch": {
    "l": 0.41296,
    "c": 0.09904,
    "h": 137
  },
  "luminance": 0.07505
}

Semantic roles & 50–950 ramp

primary
#2F571C
secondary
#75428D
accent
#4DDBAD
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2F571C

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

Preview Lab → · Contrast checker → · Palette generator →

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