#2A571D#2A571D

#2A571D is a dark, moderate green. Relative luminance 0.074; OKLCH L 41.0% C 0.101 H 139.3°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#2A571D
RGBrgb(42, 87, 29)
HSLhsl(107, 50%, 23%)
HSVhsv(107, 67%, 34%)
CMYKcmyk(51.7%, 0%, 66.7%, 65.9%)
CIE-LABlab(32.69, -27.88, 28.28)
CIE-LCHlch(32.69, 39.72, 134.59°)
OKLaboklab(41.04% -0.0766 0.0659)
OKLCHoklch(41.04% 0.101 139.3)
XYZxyz(4.5846, 7.3970, 2.3483)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A571D #4A1D57
analogous
#47571D #2A571D #1D572D
triadic
#2A571D #1D2A57 #571D2A
tetradic
#2A571D #1D4757 #4A1D57 #572D1D
square
#2A571D #1D4757 #4A1D57 #572D1D
split-complementary
#2A571D #2D1D57 #571D47
monochromatic
#0B1708 #14290E #2A571D #40852C #56B33C

Accessibility & contrast

On white

8.47
#2A571D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A571D
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A571D#FFFFFF#000000##FFFFFF
##2A571D1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F16
Deuteranopia (green-blind)
#544B22
Tritanopia (blue-blind)
#26544B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a571d;
/* rgb */ color: rgb(42, 87, 29);
/* oklch */ color: oklch(41.0% 0.101 139.3);
Tailwind
colors: {
  custom: {
    50: '#68875b',
    500: '#2a571d',
    950: '#000000',
  },
}
SCSS
$custom: #2a571d;
$custom-light: #68875b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a571d",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 29
  },
  "hsl": {
    "h": 106.552,
    "s": 50,
    "l": 22.745
  },
  "oklch": {
    "l": 0.4104,
    "c": 0.10104,
    "h": 139.3
  },
  "luminance": 0.07397
}

Semantic roles & 50–950 ramp

primary
#2A571D
secondary
#7C448C
accent
#4EDABA
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #2A571D

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

Preview Lab → · Contrast checker → · Palette generator →

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