#2B571F#2B571F

#2B571F is a dark, moderate green. Relative luminance 0.074; OKLCH L 41.1% C 0.099 H 139.4°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#2B571F
RGBrgb(43, 87, 31)
HSLhsl(107, 47%, 23%)
HSVhsv(107, 64%, 34%)
CMYKcmyk(50.6%, 0%, 64.4%, 65.9%)
CIE-LABlab(32.76, -27.30, 27.35)
CIE-LCHlch(32.76, 38.64, 134.95°)
OKLaboklab(41.12% -0.0749 0.0641)
OKLCHoklch(41.12% 0.099 139.4)
XYZxyz(4.6516, 7.4286, 2.4848)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B571F #4B1F57
analogous
#47571F #2B571F #1F572F
triadic
#2B571F #1F2B57 #571F2B
tetradic
#2B571F #1F4757 #4B1F57 #572F1F
square
#2B571F #1F4757 #4B1F57 #572F1F
split-complementary
#2B571F #2F1F57 #571F47
monochromatic
#0B1708 #152A0F #2B571F #41842F #58B13F

Accessibility & contrast

On white

8.45
#2B571F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B571F
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B571F#FFFFFF#000000##FFFFFF
##2B571F1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F19
Deuteranopia (green-blind)
#544C23
Tritanopia (blue-blind)
#27544B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b571f;
/* rgb */ color: rgb(43, 87, 31);
/* oklch */ color: oklch(41.1% 0.099 139.4);
Tailwind
colors: {
  custom: {
    50: '#68875d',
    500: '#2b571f',
    950: '#000000',
  },
}
SCSS
$custom: #2b571f;
$custom-light: #68875d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b571f",
  "rgb": {
    "r": 43,
    "g": 87,
    "b": 31
  },
  "hsl": {
    "h": 107.143,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.41117,
    "c": 0.09862,
    "h": 139.4
  },
  "luminance": 0.07429
}

Semantic roles & 50–950 ramp

primary
#2B571F
secondary
#7D468C
accent
#51D7BA
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #2B571F

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

Preview Lab → · Contrast checker → · Palette generator →

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