#2D5E17#2D5E17

#2D5E17 is a dark, moderate green. Relative luminance 0.086; OKLCH L 43.2% C 0.114 H 137.7°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#2D5E17
RGBrgb(45, 94, 23)
HSLhsl(101, 61%, 23%)
HSVhsv(101, 76%, 37%)
CMYKcmyk(52.1%, 0%, 75.5%, 63.1%)
CIE-LABlab(35.25, -30.62, 33.90)
CIE-LCHlch(35.25, 45.68, 132.09°)
OKLaboklab(43.16% -0.0847 0.0769)
OKLCHoklch(43.16% 0.114 137.7)
XYZxyz(5.2394, 8.6248, 2.1991)
Luminance0.0862 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5E17 #48175E
analogous
#515E17 #2D5E17 #175E24
triadic
#2D5E17 #172D5E #5E172D
tetradic
#2D5E17 #17515E #48175E #5E2417
square
#2D5E17 #17515E #48175E #5E2417
split-complementary
#2D5E17 #24175E #5E1751
monochromatic
#0C1906 #152D0B #2D5E17 #458F23 #5CC02F

Accessibility & contrast

On white

7.71
#2D5E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2D5E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5E17
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5E17#FFFFFF#000000##FFFFFF
##2D5E171.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61550C
Deuteranopia (green-blind)
#5B511E
Tritanopia (blue-blind)
#2A5A50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2d5e17;
/* rgb */ color: rgb(45, 94, 23);
/* oklch */ color: oklch(43.2% 0.114 137.7);
Tailwind
colors: {
  custom: {
    50: '#6b8c59',
    500: '#2d5e17',
    950: '#000000',
  },
}
SCSS
$custom: #2d5e17;
$custom-light: #6b8c59;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5e17",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 23
  },
  "hsl": {
    "h": 101.408,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.43161,
    "c": 0.1144,
    "h": 137.7
  },
  "luminance": 0.08625
}

Semantic roles & 50–950 ramp

primary
#2D5E17
secondary
#793C95
accent
#44E4B2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2D5E17

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

Preview Lab → · Contrast checker → · Palette generator →

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