#2D4C17#2D4C17

#2D4C17 is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 37.9% C 0.088 H 134.5°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#2D4C17
RGBrgb(45, 76, 23)
HSLhsl(95, 54%, 19%)
HSVhsv(95, 70%, 30%)
CMYKcmyk(40.8%, 0%, 69.7%, 70.2%)
CIE-LABlab(28.87, -22.13, 27.12)
CIE-LCHlch(28.87, 35.00, 129.21°)
OKLaboklab(37.94% -0.0616 0.0627)
OKLCHoklch(37.94% 0.088 134.5)
XYZxyz(3.8212, 5.7885, 1.7264)
Luminance0.0579 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4C17 #36174C
analogous
#484C17 #2D4C17 #174C1C
triadic
#2D4C17 #172D4C #4C172D
tetradic
#2D4C17 #17484C #36174C #4C1C17
square
#2D4C17 #17484C #36174C #4C1C17
split-complementary
#2D4C17 #1C174C #4C1748
monochromatic
#0E1707 #111D09 #2D4C17 #497B25 #65AA33

Accessibility & contrast

On white

9.73
#2D4C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2D4C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4C17
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4C17#FFFFFF#000000##FFFFFF
##2D4C171.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4611
Deuteranopia (green-blind)
#4B431B
Tritanopia (blue-blind)
#2D4941
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d4c17;
/* rgb */ color: rgb(45, 76, 23);
/* oklch */ color: oklch(37.9% 0.088 134.5);
Tailwind
colors: {
  custom: {
    50: '#697e57',
    500: '#2d4c17',
    950: '#000000',
  },
}
SCSS
$custom: #2d4c17;
$custom-light: #697e57;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4c17",
  "rgb": {
    "r": 45,
    "g": 76,
    "b": 23
  },
  "hsl": {
    "h": 95.094,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.37935,
    "c": 0.08788,
    "h": 134.5
  },
  "luminance": 0.05789
}

Semantic roles & 50–950 ramp

primary
#2D4C17
secondary
#653C83
accent
#4BDDA0
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2D4C17

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

Preview Lab → · Contrast checker → · Palette generator →

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