#2D4D17#2D4D17

#2D4D17 is a dark, moderate yellow-green. Relative luminance 0.059; OKLCH L 38.2% C 0.089 H 134.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#2D4D17
RGBrgb(45, 77, 23)
HSLhsl(96, 54%, 20%)
HSVhsv(96, 70%, 30%)
CMYKcmyk(41.6%, 0%, 70.1%, 69.8%)
CIE-LABlab(29.23, -22.63, 27.51)
CIE-LCHlch(29.23, 35.62, 129.44°)
OKLaboklab(38.22% -0.063 0.0635)
OKLCHoklch(38.22% 0.089 134.8)
XYZxyz(3.8906, 5.9273, 1.7495)
Luminance0.0593 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4D17 #37174D
analogous
#484D17 #2D4D17 #174D1C
triadic
#2D4D17 #172D4D #4D172D
tetradic
#2D4D17 #17484D #37174D #4D1C17
square
#2D4D17 #17484D #37174D #4D1C17
split-complementary
#2D4D17 #1C174D #4D1748
monochromatic
#0E1807 #111E09 #2D4D17 #497C25 #64AB33

Accessibility & contrast

On white

9.61
#2D4D17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2D4D17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4D17
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4D17#FFFFFF#000000##FFFFFF
##2D4D171.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504710
Deuteranopia (green-blind)
#4C441B
Tritanopia (blue-blind)
#2D4A42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d4d17;
/* rgb */ color: rgb(45, 77, 23);
/* oklch */ color: oklch(38.2% 0.089 134.8);
Tailwind
colors: {
  custom: {
    50: '#697f57',
    500: '#2d4d17',
    950: '#000000',
  },
}
SCSS
$custom: #2d4d17;
$custom-light: #697f57;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4d17",
  "rgb": {
    "r": 45,
    "g": 77,
    "b": 23
  },
  "hsl": {
    "h": 95.556,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38225,
    "c": 0.08943,
    "h": 134.8
  },
  "luminance": 0.05928
}

Semantic roles & 50–950 ramp

primary
#2D4D17
secondary
#673C84
accent
#4ADDA2
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2D4D17

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

Preview Lab → · Contrast checker → · Palette generator →

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