#2A571C#2A571C

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

Color values

HEX#2A571C
RGBrgb(42, 87, 28)
HSLhsl(106, 51%, 23%)
HSVhsv(106, 68%, 34%)
CMYKcmyk(51.7%, 0%, 67.8%, 65.9%)
CIE-LABlab(32.68, -28.00, 28.78)
CIE-LCHlch(32.68, 40.15, 134.21°)
OKLaboklab(41.03% -0.077 0.0669)
OKLCHoklch(41.03% 0.102 139)
XYZxyz(4.5725, 7.3922, 2.2843)
Luminance0.0739 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A571C #491C57
analogous
#47571C #2A571C #1C572C
triadic
#2A571C #1C2A57 #571C2A
tetradic
#2A571C #1C4757 #491C57 #572C1C
square
#2A571C #1C4757 #491C57 #572C1C
split-complementary
#2A571C #2C1C57 #571C47
monochromatic
#0B1707 #14290D #2A571C #40852B #57B43A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A571C#FFFFFF#000000##FFFFFF
##2A571C1.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)
#5A4F15
Deuteranopia (green-blind)
#544B21
Tritanopia (blue-blind)
#26544B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a571c;
/* rgb */ color: rgb(42, 87, 28);
/* oklch */ color: oklch(41.0% 0.102 139.0);
Tailwind
colors: {
  custom: {
    50: '#68875b',
    500: '#2a571c',
    950: '#000000',
  },
}
SCSS
$custom: #2a571c;
$custom-light: #68875b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a571c",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 28
  },
  "hsl": {
    "h": 105.763,
    "s": 51.304,
    "l": 22.549
  },
  "oklch": {
    "l": 0.41028,
    "c": 0.10195,
    "h": 139
  },
  "luminance": 0.07392
}

Semantic roles & 50–950 ramp

primary
#2A571C
secondary
#7B428D
accent
#4DDBB9
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #2A571C

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

Preview Lab → · Contrast checker → · Palette generator →

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