#2A571F#2A571F

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

Color values

HEX#2A571F
RGBrgb(42, 87, 31)
HSLhsl(108, 47%, 23%)
HSVhsv(108, 64%, 34%)
CMYKcmyk(51.7%, 0%, 64.4%, 65.9%)
CIE-LABlab(32.72, -27.64, 27.28)
CIE-LCHlch(32.72, 38.83, 135.37°)
OKLaboklab(41.07% -0.0758 0.064)
OKLCHoklch(41.07% 0.099 139.8)
XYZxyz(4.6102, 7.4072, 2.4829)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A571F #4C1F57
analogous
#46571F #2A571F #1F5730
triadic
#2A571F #1F2A57 #571F2A
tetradic
#2A571F #1F4657 #4C1F57 #57301F
square
#2A571F #1F4657 #4C1F57 #57301F
split-complementary
#2A571F #301F57 #571F46
monochromatic
#0B1708 #142A0F #2A571F #40842F #56B13F

Accessibility & contrast

On white

8.46
#2A571F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2A571F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A571F
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A571F#FFFFFF#000000##FFFFFF
##2A571F1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F19
Deuteranopia (green-blind)
#534B23
Tritanopia (blue-blind)
#26544B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a571f;
/* rgb */ color: rgb(42, 87, 31);
/* oklch */ color: oklch(41.1% 0.099 139.8);
Tailwind
colors: {
  custom: {
    50: '#68875d',
    500: '#2a571f',
    950: '#000000',
  },
}
SCSS
$custom: #2a571f;
$custom-light: #68875d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a571f",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 31
  },
  "hsl": {
    "h": 108.214,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.41066,
    "c": 0.09918,
    "h": 139.8
  },
  "luminance": 0.07408
}

Semantic roles & 50–950 ramp

primary
#2A571F
secondary
#7E468C
accent
#51D7BD
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #2A571F

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

Preview Lab → · Contrast checker → · Palette generator →

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