#2A571B#2A571B

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

Color values

HEX#2A571B
RGBrgb(42, 87, 27)
HSLhsl(105, 53%, 22%)
HSVhsv(105, 69%, 34%)
CMYKcmyk(51.7%, 0%, 69%, 65.9%)
CIE-LABlab(32.67, -28.11, 29.26)
CIE-LCHlch(32.67, 40.57, 133.85°)
OKLaboklab(41.02% -0.0773 0.0678)
OKLCHoklch(41.02% 0.103 138.8)
XYZxyz(4.5607, 7.3874, 2.2223)
Luminance0.0739 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A571B #481B57
analogous
#48571B #2A571B #1B572A
triadic
#2A571B #1B2A57 #571B2A
tetradic
#2A571B #1B4857 #481B57 #572A1B
square
#2A571B #1B4857 #481B57 #572A1B
split-complementary
#2A571B #2A1B57 #571B48
monochromatic
#0B1707 #13280D #2A571B #418629 #57B438

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A571B#FFFFFF#000000##FFFFFF
##2A571B1.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)
#5A4F14
Deuteranopia (green-blind)
#544B20
Tritanopia (blue-blind)
#26544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a571b;
/* rgb */ color: rgb(42, 87, 27);
/* oklch */ color: oklch(41.0% 0.103 138.8);
Tailwind
colors: {
  custom: {
    50: '#68875a',
    500: '#2a571b',
    950: '#000000',
  },
}
SCSS
$custom: #2a571b;
$custom-light: #68875a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a571b",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 105,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.41016,
    "c": 0.10282,
    "h": 138.8
  },
  "luminance": 0.07388
}

Semantic roles & 50–950 ramp

primary
#2A571B
secondary
#7A418D
accent
#4CDCB8
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #2A571B

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

Preview Lab → · Contrast checker → · Palette generator →

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