#2D5B17#2D5B17

#2D5B17 is a dark, moderate green. Relative luminance 0.081; OKLCH L 42.3% C 0.110 H 137.4°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#2D5B17
RGBrgb(45, 91, 23)
HSLhsl(101, 60%, 22%)
HSVhsv(101, 75%, 36%)
CMYKcmyk(50.5%, 0%, 74.7%, 64.3%)
CIE-LABlab(34.19, -29.28, 32.80)
CIE-LCHlch(34.19, 43.97, 131.75°)
OKLaboklab(42.29% -0.081 0.0746)
OKLCHoklch(42.29% 0.11 137.4)
XYZxyz(4.9778, 8.1016, 2.1119)
Luminance0.0810 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5B17 #45175B
analogous
#4F5B17 #2D5B17 #175B23
triadic
#2D5B17 #172D5B #5B172D
tetradic
#2D5B17 #174F5B #45175B #5B2317
square
#2D5B17 #174F5B #45175B #5B2317
split-complementary
#2D5B17 #23175B #5B174F
monochromatic
#0C1806 #152A0B #2D5B17 #458C23 #5DBD30

Accessibility & contrast

On white

8.01
#2D5B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2D5B17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5B17
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5B17#FFFFFF#000000##FFFFFF
##2D5B171.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E530D
Deuteranopia (green-blind)
#584F1D
Tritanopia (blue-blind)
#2A584D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d5b17;
/* rgb */ color: rgb(45, 91, 23);
/* oklch */ color: oklch(42.3% 0.110 137.4);
Tailwind
colors: {
  custom: {
    50: '#6b8a58',
    500: '#2d5b17',
    950: '#000000',
  },
}
SCSS
$custom: #2d5b17;
$custom-light: #6b8a58;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5b17",
  "rgb": {
    "r": 45,
    "g": 91,
    "b": 23
  },
  "hsl": {
    "h": 100.588,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42291,
    "c": 0.11018,
    "h": 137.4
  },
  "luminance": 0.08102
}

Semantic roles & 50–950 ramp

primary
#2D5B17
secondary
#763C92
accent
#45E3B0
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5B17

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

Preview Lab → · Contrast checker → · Palette generator →

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