#2B571C#2B571C

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

Color values

HEX#2B571C
RGBrgb(43, 87, 28)
HSLhsl(105, 51%, 23%)
HSVhsv(105, 68%, 34%)
CMYKcmyk(50.6%, 0%, 67.8%, 65.9%)
CIE-LABlab(32.73, -27.65, 28.84)
CIE-LCHlch(32.73, 39.95, 133.79°)
OKLaboklab(41.08% -0.0761 0.067)
OKLCHoklch(41.08% 0.101 138.6)
XYZxyz(4.6139, 7.4135, 2.2862)
Luminance0.0741 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B571C #481C57
analogous
#48571C #2B571C #1C572B
triadic
#2B571C #1C2B57 #571C2B
tetradic
#2B571C #1C4857 #481C57 #572B1C
square
#2B571C #1C4857 #481C57 #572B1C
split-complementary
#2B571C #2B1C57 #571C48
monochromatic
#0B1707 #14290D #2B571C #42852B #59B43A

Accessibility & contrast

On white

8.46
#2B571C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B571C
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B571C#FFFFFF#000000##FFFFFF
##2B571C1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F15
Deuteranopia (green-blind)
#544C21
Tritanopia (blue-blind)
#28544B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b571c;
/* rgb */ color: rgb(43, 87, 28);
/* oklch */ color: oklch(41.1% 0.101 138.6);
Tailwind
colors: {
  custom: {
    50: '#69875b',
    500: '#2b571c',
    950: '#000000',
  },
}
SCSS
$custom: #2b571c;
$custom-light: #69875b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b571c",
  "rgb": {
    "r": 43,
    "g": 87,
    "b": 28
  },
  "hsl": {
    "h": 104.746,
    "s": 51.304,
    "l": 22.549
  },
  "oklch": {
    "l": 0.4108,
    "c": 0.10138,
    "h": 138.6
  },
  "luminance": 0.07414
}

Semantic roles & 50–950 ramp

primary
#2B571C
secondary
#7A428D
accent
#4DDBB7
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #2B571C

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

Preview Lab → · Contrast checker → · Palette generator →

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