#2D571B#2D571B

#2D571B is a dark, moderate green. Relative luminance 0.075; OKLCH L 41.2% C 0.101 H 137.6°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#2D571B
RGBrgb(45, 87, 27)
HSLhsl(102, 53%, 22%)
HSVhsv(102, 69%, 34%)
CMYKcmyk(48.3%, 0%, 69%, 65.9%)
CIE-LABlab(32.82, -27.05, 29.46)
CIE-LCHlch(32.82, 40.00, 132.56°)
OKLaboklab(41.17% -0.0747 0.0682)
OKLCHoklch(41.17% 0.101 137.6)
XYZxyz(4.6881, 7.4531, 2.2283)
Luminance0.0745 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D571B #451B57
analogous
#4B571B #2D571B #1B5727
triadic
#2D571B #1B2D57 #571B2D
tetradic
#2D571B #1B4B57 #451B57 #57271B
square
#2D571B #1B4B57 #451B57 #57271B
split-complementary
#2D571B #271B57 #571B4B
monochromatic
#0C1707 #15280D #2D571B #458629 #5DB438

Accessibility & contrast

On white

8.43
#2D571B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2D571B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D571B
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D571B#FFFFFF#000000##FFFFFF
##2D571B1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F14
Deuteranopia (green-blind)
#544C20
Tritanopia (blue-blind)
#2B544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2d571b;
/* rgb */ color: rgb(45, 87, 27);
/* oklch */ color: oklch(41.2% 0.101 137.6);
Tailwind
colors: {
  custom: {
    50: '#6a875a',
    500: '#2d571b',
    950: '#000000',
  },
}
SCSS
$custom: #2d571b;
$custom-light: #6a875a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d571b",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 102,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.41174,
    "c": 0.1011,
    "h": 137.6
  },
  "luminance": 0.07453
}

Semantic roles & 50–950 ramp

primary
#2D571B
secondary
#76418D
accent
#4CDCB1
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2D571B

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

Preview Lab → · Contrast checker → · Palette generator →

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