#2D5C17#2D5C17

#2D5C17 is a dark, moderate green. Relative luminance 0.083; OKLCH L 42.6% C 0.112 H 137.5°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#2D5C17
RGBrgb(45, 92, 23)
HSLhsl(101, 60%, 23%)
HSVhsv(101, 75%, 36%)
CMYKcmyk(51.1%, 0%, 75%, 63.9%)
CIE-LABlab(34.55, -29.73, 33.17)
CIE-LCHlch(34.55, 44.55, 131.87°)
OKLaboklab(42.58% -0.0823 0.0754)
OKLCHoklch(42.58% 0.112 137.5)
XYZxyz(5.0638, 8.2737, 2.1406)
Luminance0.0827 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5C17 #46175C
analogous
#4F5C17 #2D5C17 #175C24
triadic
#2D5C17 #172D5C #5C172D
tetradic
#2D5C17 #174F5C #46175C #5C2417
square
#2D5C17 #174F5C #46175C #5C2417
split-complementary
#2D5C17 #24175C #5C174F
monochromatic
#0C1806 #152B0B #2D5C17 #458D23 #5DBE2F

Accessibility & contrast

On white

7.91
#2D5C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2D5C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5C17
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5C17#FFFFFF#000000##FFFFFF
##2D5C171.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F540C
Deuteranopia (green-blind)
#59501D
Tritanopia (blue-blind)
#2A594E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d5c17;
/* rgb */ color: rgb(45, 92, 23);
/* oklch */ color: oklch(42.6% 0.112 137.5);
Tailwind
colors: {
  custom: {
    50: '#6b8a59',
    500: '#2d5c17',
    950: '#000000',
  },
}
SCSS
$custom: #2d5c17;
$custom-light: #6b8a59;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5c17",
  "rgb": {
    "r": 45,
    "g": 92,
    "b": 23
  },
  "hsl": {
    "h": 100.87,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42581,
    "c": 0.1116,
    "h": 137.5
  },
  "luminance": 0.08274
}

Semantic roles & 50–950 ramp

primary
#2D5C17
secondary
#773C93
accent
#45E3B1
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2D5C17

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

Preview Lab → · Contrast checker → · Palette generator →

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