#2D5F18#2D5F18

#2D5F18 is a dark, moderate green. Relative luminance 0.088; OKLCH L 43.5% C 0.115 H 138.0°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#2D5F18
RGBrgb(45, 95, 24)
HSLhsl(102, 60%, 23%)
HSVhsv(102, 75%, 37%)
CMYKcmyk(52.6%, 0%, 74.7%, 62.7%)
CIE-LABlab(35.61, -30.97, 33.84)
CIE-LCHlch(35.61, 45.87, 132.47°)
OKLaboklab(43.46% -0.0856 0.0769)
OKLCHoklch(43.46% 0.115 138)
XYZxyz(5.3391, 8.8079, 2.2827)
Luminance0.0881 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5F18 #4A185F
analogous
#505F18 #2D5F18 #185F26
triadic
#2D5F18 #182D5F #5F182D
tetradic
#2D5F18 #18505F #4A185F #5F2618
square
#2D5F18 #18505F #4A185F #5F2618
split-complementary
#2D5F18 #26185F #5F1850
monochromatic
#0C1806 #162E0C #2D5F18 #449024 #5BC131

Accessibility & contrast

On white

7.60
#2D5F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2D5F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5F18
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5F18#FFFFFF#000000##FFFFFF
##2D5F181.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62560D
Deuteranopia (green-blind)
#5C521F
Tritanopia (blue-blind)
#295B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2d5f18;
/* rgb */ color: rgb(45, 95, 24);
/* oklch */ color: oklch(43.5% 0.115 138.0);
Tailwind
colors: {
  custom: {
    50: '#6b8d59',
    500: '#2d5f18',
    950: '#000000',
  },
}
SCSS
$custom: #2d5f18;
$custom-light: #6b8d59;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5f18",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 24
  },
  "hsl": {
    "h": 102.254,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.43459,
    "c": 0.11507,
    "h": 138
  },
  "luminance": 0.08808
}

Semantic roles & 50–950 ramp

primary
#2D5F18
secondary
#7B3D95
accent
#45E3B4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2D5F18

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

Preview Lab → · Contrast checker → · Palette generator →

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