#2F571F#2F571F

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

Color values

HEX#2F571F
RGBrgb(47, 87, 31)
HSLhsl(103, 47%, 23%)
HSVhsv(103, 64%, 34%)
CMYKcmyk(46%, 0%, 64.4%, 65.9%)
CIE-LABlab(32.96, -25.87, 27.62)
CIE-LCHlch(32.96, 37.85, 133.12°)
OKLaboklab(41.33% -0.0713 0.0647)
OKLCHoklch(41.33% 0.096 137.8)
XYZxyz(4.8277, 7.5194, 2.4931)
Luminance0.0752 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F571F #471F57
analogous
#4B571F #2F571F #1F572B
triadic
#2F571F #1F2F57 #571F2F
tetradic
#2F571F #1F4B57 #471F57 #572B1F
square
#2F571F #1F4B57 #471F57 #572B1F
split-complementary
#2F571F #2B1F57 #571F4B
monochromatic
#0C1708 #172A0F #2F571F #47842F #60B13F

Accessibility & contrast

On white

8.39
#2F571F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F571F
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F571F#FFFFFF#000000##FFFFFF
##2F571F1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f571f;
/* rgb */ color: rgb(47, 87, 31);
/* oklch */ color: oklch(41.3% 0.096 137.8);
Tailwind
colors: {
  custom: {
    50: '#6b875d',
    500: '#2f571f',
    950: '#000000',
  },
}
SCSS
$custom: #2f571f;
$custom-light: #6b875d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f571f",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 31
  },
  "hsl": {
    "h": 102.857,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.41333,
    "c": 0.09627,
    "h": 137.8
  },
  "luminance": 0.0752
}

Semantic roles & 50–950 ramp

primary
#2F571F
secondary
#78468C
accent
#51D7B1
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2F571F

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

Preview Lab → · Contrast checker → · Palette generator →

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