#2D511F#2D511F

#2D511F is a dark, moderate green. Relative luminance 0.065; OKLCH L 39.5% C 0.088 H 137.8°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#2D511F
RGBrgb(45, 81, 31)
HSLhsl(103, 45%, 22%)
HSVhsv(103, 62%, 32%)
CMYKcmyk(44.4%, 0%, 61.7%, 68.2%)
CIE-LABlab(30.74, -23.69, 25.03)
CIE-LCHlch(30.74, 34.46, 133.43°)
OKLaboklab(39.49% -0.0652 0.0591)
OKLCHoklch(39.49% 0.088 137.8)
XYZxyz(4.2718, 6.5414, 2.3336)
Luminance0.0654 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D511F #431F51
analogous
#46511F #2D511F #1F512A
triadic
#2D511F #1F2D51 #511F2D
tetradic
#2D511F #1F4651 #431F51 #512A1F
square
#2D511F #1F4651 #431F51 #512A1F
split-complementary
#2D511F #2A1F51 #511F46
monochromatic
#0C1608 #14250E #2D511F #467D30 #5EAA41

Accessibility & contrast

On white

9.10
#2D511F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2D511F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D511F
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D511F#FFFFFF#000000##FFFFFF
##2D511F1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A1A
Deuteranopia (green-blind)
#4F4723
Tritanopia (blue-blind)
#2B4E46
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d511f;
/* rgb */ color: rgb(45, 81, 31);
/* oklch */ color: oklch(39.5% 0.088 137.8);
Tailwind
colors: {
  custom: {
    50: '#69825c',
    500: '#2d511f',
    950: '#000000',
  },
}
SCSS
$custom: #2d511f;
$custom-light: #69825c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d511f",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 31
  },
  "hsl": {
    "h": 103.2,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.39488,
    "c": 0.08803,
    "h": 137.8
  },
  "luminance": 0.06542
}

Semantic roles & 50–950 ramp

primary
#2D511F
secondary
#744686
accent
#53D4B0
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A04
muted
#7A7C79

Preview Lab

Preview with #2D511F

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

Preview Lab → · Contrast checker → · Palette generator →

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