#2D581B#2D581B

#2D581B is a dark, moderate green. Relative luminance 0.076; OKLCH L 41.5% C 0.103 H 137.8°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#2D581B
RGBrgb(45, 88, 27)
HSLhsl(102, 53%, 23%)
HSVhsv(102, 69%, 35%)
CMYKcmyk(48.9%, 0%, 69.3%, 65.5%)
CIE-LABlab(33.17, -27.52, 29.85)
CIE-LCHlch(33.17, 40.60, 132.67°)
OKLaboklab(41.46% -0.0759 0.069)
OKLCHoklch(41.46% 0.103 137.8)
XYZxyz(4.7696, 7.6162, 2.2554)
Luminance0.0762 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D581B #461B58
analogous
#4B581B #2D581B #1B5828
triadic
#2D581B #1B2D58 #581B2D
tetradic
#2D581B #1B4B58 #461B58 #58281B
square
#2D581B #1B4B58 #461B58 #58281B
split-complementary
#2D581B #281B58 #581B4B
monochromatic
#0C1707 #15290D #2D581B #458729 #5DB638

Accessibility & contrast

On white

8.32
#2D581B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2D581B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D581B
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D581B#FFFFFF#000000##FFFFFF
##2D581B1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5013
Deuteranopia (green-blind)
#554D20
Tritanopia (blue-blind)
#2A554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d581b;
/* rgb */ color: rgb(45, 88, 27);
/* oklch */ color: oklch(41.5% 0.103 137.8);
Tailwind
colors: {
  custom: {
    50: '#6a875a',
    500: '#2d581b',
    950: '#000000',
  },
}
SCSS
$custom: #2d581b;
$custom-light: #6a875a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d581b",
  "rgb": {
    "r": 45,
    "g": 88,
    "b": 27
  },
  "hsl": {
    "h": 102.295,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.41464,
    "c": 0.10259,
    "h": 137.8
  },
  "luminance": 0.07616
}

Semantic roles & 50–950 ramp

primary
#2D581B
secondary
#77418E
accent
#4BDCB2
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2D581B

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

Preview Lab → · Contrast checker → · Palette generator →

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