#2D5A17#2D5A17

#2D5A17 is a dark, moderate green. Relative luminance 0.079; OKLCH L 42.0% C 0.109 H 137.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#2D5A17
RGBrgb(45, 90, 23)
HSLhsl(100, 59%, 22%)
HSVhsv(100, 74%, 35%)
CMYKcmyk(50%, 0%, 74.4%, 64.7%)
CIE-LABlab(33.84, -28.83, 32.44)
CIE-LCHlch(33.84, 43.40, 131.63°)
OKLaboklab(42% -0.0798 0.0739)
OKLCHoklch(42% 0.109 137.2)
XYZxyz(4.8929, 7.9318, 2.0836)
Luminance0.0793 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5A17 #44175A
analogous
#4E5A17 #2D5A17 #175A23
triadic
#2D5A17 #172D5A #5A172D
tetradic
#2D5A17 #174E5A #44175A #5A2317
square
#2D5A17 #174E5A #44175A #5A2317
split-complementary
#2D5A17 #23175A #5A174E
monochromatic
#0C1806 #15290B #2D5A17 #458B23 #5EBB30

Accessibility & contrast

On white

8.12
#2D5A17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2D5A17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5A17
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5A17#FFFFFF#000000##FFFFFF
##2D5A171.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D520D
Deuteranopia (green-blind)
#574E1D
Tritanopia (blue-blind)
#2A574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d5a17;
/* rgb */ color: rgb(45, 90, 23);
/* oklch */ color: oklch(42.0% 0.109 137.2);
Tailwind
colors: {
  custom: {
    50: '#6b8958',
    500: '#2d5a17',
    950: '#000000',
  },
}
SCSS
$custom: #2d5a17;
$custom-light: #6b8958;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5a17",
  "rgb": {
    "r": 45,
    "g": 90,
    "b": 23
  },
  "hsl": {
    "h": 100.299,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42001,
    "c": 0.10876,
    "h": 137.2
  },
  "luminance": 0.07932
}

Semantic roles & 50–950 ramp

primary
#2D5A17
secondary
#753C91
accent
#45E2AF
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5A17

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

Preview Lab → · Contrast checker → · Palette generator →

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