#2D5918#2D5918

#2D5918 is a dark, moderate green. Relative luminance 0.078; OKLCH L 41.7% C 0.107 H 137.3°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2D5918
RGBrgb(45, 89, 24)
HSLhsl(101, 58%, 22%)
HSVhsv(101, 73%, 35%)
CMYKcmyk(49.4%, 0%, 73%, 65.1%)
CIE-LABlab(33.50, -28.28, 31.62)
CIE-LCHlch(33.50, 42.42, 131.81°)
OKLaboklab(41.72% -0.0783 0.0723)
OKLCHoklch(41.72% 0.107 137.3)
XYZxyz(4.8193, 7.7683, 2.1095)
Luminance0.0777 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5918 #441859
analogous
#4E5918 #2D5918 #185923
triadic
#2D5918 #182D59 #59182D
tetradic
#2D5918 #184E59 #441859 #592318
square
#2D5918 #184E59 #441859 #592318
split-complementary
#2D5918 #231859 #59184E
monochromatic
#0C1806 #15290B #2D5918 #458925 #5EB932

Accessibility & contrast

On white

8.22
#2D5918 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2D5918 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5918
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5918#FFFFFF#000000##FFFFFF
##2D59181.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510F
Deuteranopia (green-blind)
#564D1E
Tritanopia (blue-blind)
#2A564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d5918;
/* rgb */ color: rgb(45, 89, 24);
/* oklch */ color: oklch(41.7% 0.107 137.3);
Tailwind
colors: {
  custom: {
    50: '#6a8859',
    500: '#2d5918',
    950: '#000000',
  },
}
SCSS
$custom: #2d5918;
$custom-light: #6a8859;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5918",
  "rgb": {
    "r": 45,
    "g": 89,
    "b": 24
  },
  "hsl": {
    "h": 100.615,
    "s": 57.522,
    "l": 22.157
  },
  "oklch": {
    "l": 0.41721,
    "c": 0.10654,
    "h": 137.3
  },
  "luminance": 0.07769
}

Semantic roles & 50–950 ramp

primary
#2D5918
secondary
#753D90
accent
#47E1AF
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2D5918

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

Preview Lab → · Contrast checker → · Palette generator →

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