#2D5A18#2D5A18

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

Color values

HEX#2D5A18
RGBrgb(45, 90, 24)
HSLhsl(101, 58%, 22%)
HSVhsv(101, 73%, 35%)
CMYKcmyk(50%, 0%, 73.3%, 64.7%)
CIE-LABlab(33.85, -28.74, 31.99)
CIE-LCHlch(33.85, 43.01, 131.93°)
OKLaboklab(42.01% -0.0795 0.0731)
OKLCHoklch(42.01% 0.108 137.4)
XYZxyz(4.9031, 7.9358, 2.1374)
Luminance0.0794 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5A18 #45185A
analogous
#4E5A18 #2D5A18 #185A24
triadic
#2D5A18 #182D5A #5A182D
tetradic
#2D5A18 #184E5A #45185A #5A2418
square
#2D5A18 #184E5A #45185A #5A2418
split-complementary
#2D5A18 #24185A #5A184E
monochromatic
#0C1806 #152A0B #2D5A18 #458A25 #5DBB32

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D5A18#FFFFFF#000000##FFFFFF
##2D5A181.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)
#5D520F
Deuteranopia (green-blind)
#574E1E
Tritanopia (blue-blind)
#2A574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d5a18;
/* rgb */ color: rgb(45, 90, 24);
/* oklch */ color: oklch(42.0% 0.108 137.4);
Tailwind
colors: {
  custom: {
    50: '#6b8959',
    500: '#2d5a18',
    950: '#000000',
  },
}
SCSS
$custom: #2d5a18;
$custom-light: #6b8959;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5a18",
  "rgb": {
    "r": 45,
    "g": 90,
    "b": 24
  },
  "hsl": {
    "h": 100.909,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42011,
    "c": 0.10799,
    "h": 137.4
  },
  "luminance": 0.07936
}

Semantic roles & 50–950 ramp

primary
#2D5A18
secondary
#763D91
accent
#47E1B0
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2D5A18

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

Preview Lab → · Contrast checker → · Palette generator →

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