#2D6540#2D6540

#2D6540 is a mid, moderate green. Relative luminance 0.102; OKLCH L 45.8% C 0.085 H 152.7°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#2D6540
RGBrgb(45, 101, 64)
HSLhsl(140, 38%, 29%)
HSVhsv(140, 55%, 40%)
CMYKcmyk(55.4%, 0%, 36.6%, 60.4%)
CIE-LABlab(38.26, -27.74, 15.49)
CIE-LCHlch(38.26, 31.77, 150.82°)
OKLaboklab(45.81% -0.0754 0.0389)
OKLCHoklch(45.81% 0.085 152.7)
XYZxyz(6.6608, 10.2349, 6.4740)
Luminance0.1023 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6540 #652D52
analogous
#36652D #2D6540 #2D655C
triadic
#2D6540 #402D65 #65402D
tetradic
#2D6540 #2D3665 #652D52 #655C2D
square
#2D6540 #2D3665 #652D52 #655C2D
split-complementary
#2D6540 #5C2D65 #652D36
monochromatic
#09150D #1A3B25 #2D6540 #408F5B #58B577

Accessibility & contrast

On white

6.89
#2D6540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2D6540 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D6540
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6540#FFFFFF#000000##FFFFFF
##2D65401.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655D3E
Deuteranopia (green-blind)
#5D5842
Tritanopia (blue-blind)
#1F645B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d6540;
/* rgb */ color: rgb(45, 101, 64);
/* oklch */ color: oklch(45.8% 0.085 152.7);
Tailwind
colors: {
  custom: {
    50: '#6b9175',
    500: '#2d6540',
    950: '#000000',
  },
}
SCSS
$custom: #2d6540;
$custom-light: #6b9175;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6540",
  "rgb": {
    "r": 45,
    "g": 101,
    "b": 64
  },
  "hsl": {
    "h": 140.357,
    "s": 38.356,
    "l": 28.627
  },
  "oklch": {
    "l": 0.45814,
    "c": 0.08488,
    "h": 152.7
  },
  "luminance": 0.10235
}

Semantic roles & 50–950 ramp

primary
#2D6540
secondary
#975781
accent
#5AA7CE
background
#F6F8F7
surface
#EBF0ED
border
#C6CBC8
text
#070D08
muted
#7A7D7B

Preview Lab

Preview with #2D6540

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

Preview Lab → · Contrast checker → · Palette generator →

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