#2D5B18#2D5B18

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

Color values

HEX#2D5B18
RGBrgb(45, 91, 24)
HSLhsl(101, 58%, 23%)
HSVhsv(101, 74%, 36%)
CMYKcmyk(50.5%, 0%, 73.6%, 64.3%)
CIE-LABlab(34.20, -29.19, 32.37)
CIE-LCHlch(34.20, 43.59, 132.05°)
OKLaboklab(42.3% -0.0807 0.0739)
OKLCHoklch(42.3% 0.109 137.5)
XYZxyz(4.9880, 8.1057, 2.1657)
Luminance0.0811 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5B18 #46185B
analogous
#4F5B18 #2D5B18 #185B24
triadic
#2D5B18 #182D5B #5B182D
tetradic
#2D5B18 #184F5B #46185B #5B2418
square
#2D5B18 #184F5B #46185B #5B2418
split-complementary
#2D5B18 #24185B #5B184F
monochromatic
#0C1806 #152B0B #2D5B18 #458B25 #5DBC32

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D5B18#FFFFFF#000000##FFFFFF
##2D5B181.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)
#5E530E
Deuteranopia (green-blind)
#584F1E
Tritanopia (blue-blind)
#2A584E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d5b18;
/* rgb */ color: rgb(45, 91, 24);
/* oklch */ color: oklch(42.3% 0.109 137.5);
Tailwind
colors: {
  custom: {
    50: '#6b8a59',
    500: '#2d5b18',
    950: '#000000',
  },
}
SCSS
$custom: #2d5b18;
$custom-light: #6b8a59;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5b18",
  "rgb": {
    "r": 45,
    "g": 91,
    "b": 24
  },
  "hsl": {
    "h": 101.194,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42301,
    "c": 0.10942,
    "h": 137.5
  },
  "luminance": 0.08106
}

Semantic roles & 50–950 ramp

primary
#2D5B18
secondary
#773D92
accent
#46E1B1
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2D5B18

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

Preview Lab → · Contrast checker → · Palette generator →

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