#2B581B#2B581B

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

Color values

HEX#2B581B
RGBrgb(43, 88, 27)
HSLhsl(104, 53%, 23%)
HSVhsv(104, 69%, 35%)
CMYKcmyk(51.1%, 0%, 69.3%, 65.5%)
CIE-LABlab(33.07, -28.22, 29.72)
CIE-LCHlch(33.07, 40.98, 133.52°)
OKLaboklab(41.36% -0.0777 0.0687)
OKLCHoklch(41.36% 0.104 138.5)
XYZxyz(4.6836, 7.5719, 2.2514)
Luminance0.0757 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B581B #481B58
analogous
#4A581B #2B581B #1B5829
triadic
#2B581B #1B2B58 #581B2B
tetradic
#2B581B #1B4A58 #481B58 #58291B
square
#2B581B #1B4A58 #481B58 #58291B
split-complementary
#2B581B #291B58 #581B4A
monochromatic
#0B1707 #14290D #2B581B #428729 #59B638

Accessibility & contrast

On white

8.35
#2B581B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2B581B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B581B
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B581B#FFFFFF#000000##FFFFFF
##2B581B1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5013
Deuteranopia (green-blind)
#554C20
Tritanopia (blue-blind)
#28554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2b581b;
/* rgb */ color: rgb(43, 88, 27);
/* oklch */ color: oklch(41.4% 0.104 138.5);
Tailwind
colors: {
  custom: {
    50: '#69875a',
    500: '#2b581b',
    950: '#000000',
  },
}
SCSS
$custom: #2b581b;
$custom-light: #69875a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b581b",
  "rgb": {
    "r": 43,
    "g": 88,
    "b": 27
  },
  "hsl": {
    "h": 104.262,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.41359,
    "c": 0.10374,
    "h": 138.5
  },
  "luminance": 0.07572
}

Semantic roles & 50–950 ramp

primary
#2B581B
secondary
#7A418E
accent
#4BDCB6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #2B581B

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

Preview Lab → · Contrast checker → · Palette generator →

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