#2A571A#2A571A

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

Color values

HEX#2A571A
RGBrgb(42, 87, 26)
HSLhsl(104, 54%, 22%)
HSVhsv(104, 70%, 34%)
CMYKcmyk(51.7%, 0%, 70.1%, 65.9%)
CIE-LABlab(32.66, -28.22, 29.74)
CIE-LCHlch(32.66, 41.00, 133.49°)
OKLaboklab(41.01% -0.0777 0.0686)
OKLCHoklch(41.01% 0.104 138.5)
XYZxyz(4.5493, 7.3829, 2.1624)
Luminance0.0738 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A571A #471A57
analogous
#49571A #2A571A #1A5729
triadic
#2A571A #1A2A57 #571A2A
tetradic
#2A571A #1A4957 #471A57 #57291A
square
#2A571A #1A4957 #471A57 #57291A
split-complementary
#2A571A #291A57 #571A49
monochromatic
#0B1807 #13280C #2A571A #418628 #57B536

Accessibility & contrast

On white

8.48
#2A571A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A571A
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A571A#FFFFFF#000000##FFFFFF
##2A571A1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F12
Deuteranopia (green-blind)
#544B1F
Tritanopia (blue-blind)
#27544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a571a;
/* rgb */ color: rgb(42, 87, 26);
/* oklch */ color: oklch(41.0% 0.104 138.5);
Tailwind
colors: {
  custom: {
    50: '#68875a',
    500: '#2a571a',
    950: '#000000',
  },
}
SCSS
$custom: #2a571a;
$custom-light: #68875a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a571a",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 26
  },
  "hsl": {
    "h": 104.262,
    "s": 53.982,
    "l": 22.157
  },
  "oklch": {
    "l": 0.41005,
    "c": 0.10368,
    "h": 138.5
  },
  "luminance": 0.07383
}

Semantic roles & 50–950 ramp

primary
#2A571A
secondary
#79408D
accent
#4ADDB7
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #2A571A

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

Preview Lab → · Contrast checker → · Palette generator →

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