#2D581F#2D581F

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

Color values

HEX#2D581F
RGBrgb(45, 88, 31)
HSLhsl(105, 48%, 23%)
HSVhsv(105, 65%, 35%)
CMYKcmyk(48.9%, 0%, 64.8%, 65.5%)
CIE-LABlab(33.21, -27.07, 27.88)
CIE-LCHlch(33.21, 38.86, 134.15°)
OKLaboklab(41.51% -0.0744 0.0653)
OKLCHoklch(41.51% 0.099 138.8)
XYZxyz(4.8191, 7.6360, 2.5160)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D581F #4A1F58
analogous
#49581F #2D581F #1F582D
triadic
#2D581F #1F2D58 #581F2D
tetradic
#2D581F #1F4958 #4A1F58 #582D1F
square
#2D581F #1F4958 #4A1F58 #582D1F
split-complementary
#2D581F #2D1F58 #581F49
monochromatic
#0C1708 #162B0F #2D581F #44852F #5BB33F

Accessibility & contrast

On white

8.31
#2D581F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2D581F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D581F
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D581F#FFFFFF#000000##FFFFFF
##2D581F1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5019
Deuteranopia (green-blind)
#554D23
Tritanopia (blue-blind)
#2A554C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d581f;
/* rgb */ color: rgb(45, 88, 31);
/* oklch */ color: oklch(41.5% 0.099 138.8);
Tailwind
colors: {
  custom: {
    50: '#6a875d',
    500: '#2d581f',
    950: '#000000',
  },
}
SCSS
$custom: #2d581f;
$custom-light: #6a875d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d581f",
  "rgb": {
    "r": 45,
    "g": 88,
    "b": 31
  },
  "hsl": {
    "h": 105.263,
    "s": 47.899,
    "l": 23.333
  },
  "oklch": {
    "l": 0.41512,
    "c": 0.09898,
    "h": 138.8
  },
  "luminance": 0.07636
}

Semantic roles & 50–950 ramp

primary
#2D581F
secondary
#7B468D
accent
#50D7B6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2D581F

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

Preview Lab → · Contrast checker → · Palette generator →

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