#2D511B#2D511B

#2D511B is a dark, moderate green. Relative luminance 0.065; OKLCH L 39.4% C 0.092 H 136.6°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#2D511B
RGBrgb(45, 81, 27)
HSLhsl(100, 50%, 21%)
HSVhsv(100, 67%, 32%)
CMYKcmyk(44.4%, 0%, 66.7%, 68.2%)
CIE-LABlab(30.69, -24.18, 27.10)
CIE-LCHlch(30.69, 36.32, 131.74°)
OKLaboklab(39.43% -0.0669 0.0631)
OKLCHoklch(39.43% 0.092 136.6)
XYZxyz(4.2223, 6.5217, 2.0730)
Luminance0.0652 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D511B #3F1B51
analogous
#48511B #2D511B #1B5124
triadic
#2D511B #1B2D51 #511B2D
tetradic
#2D511B #1B4851 #3F1B51 #51241B
square
#2D511B #1B4851 #3F1B51 #51241B
split-complementary
#2D511B #241B51 #511B48
monochromatic
#0D1708 #13230C #2D511B #467F2A #60AD3A

Accessibility & contrast

On white

9.11
#2D511B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2D511B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D511B
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D511B#FFFFFF#000000##FFFFFF
##2D511B1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A15
Deuteranopia (green-blind)
#4F471F
Tritanopia (blue-blind)
#2C4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d511b;
/* rgb */ color: rgb(45, 81, 27);
/* oklch */ color: oklch(39.4% 0.092 136.6);
Tailwind
colors: {
  custom: {
    50: '#69825a',
    500: '#2d511b',
    950: '#000000',
  },
}
SCSS
$custom: #2d511b;
$custom-light: #69825a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d511b",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 27
  },
  "hsl": {
    "h": 100,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.39435,
    "c": 0.09195,
    "h": 136.6
  },
  "luminance": 0.06522
}

Semantic roles & 50–950 ramp

primary
#2D511B
secondary
#704187
accent
#4EDAAB
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A04
muted
#7A7C79

Preview Lab

Preview with #2D511B

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

Preview Lab → · Contrast checker → · Palette generator →

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