#2D4917#2D4917

#2D4917 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.1% C 0.083 H 133.7°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#2D4917
RGBrgb(45, 73, 23)
HSLhsl(94, 52%, 19%)
HSVhsv(94, 68%, 29%)
CMYKcmyk(38.4%, 0%, 68.5%, 71.4%)
CIE-LABlab(27.80, -20.59, 25.94)
CIE-LCHlch(27.80, 33.12, 128.45°)
OKLaboklab(37.06% -0.0574 0.0602)
OKLCHoklch(37.06% 0.083 133.7)
XYZxyz(3.6193, 5.3847, 1.6591)
Luminance0.0539 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4917 #331749
analogous
#464917 #2D4917 #17491A
triadic
#2D4917 #172D49 #49172D
tetradic
#2D4917 #174649 #331749 #491A17
square
#2D4917 #174649 #331749 #491A17
split-complementary
#2D4917 #1A1749 #491746
monochromatic
#0E1707 #101A08 #2D4917 #4A7826 #66A634

Accessibility & contrast

On white

10.11
#2D4917 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2D4917 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4917
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4917#FFFFFF#000000##FFFFFF
##2D49171.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4311
Deuteranopia (green-blind)
#48411B
Tritanopia (blue-blind)
#2D463E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d4917;
/* rgb */ color: rgb(45, 73, 23);
/* oklch */ color: oklch(37.1% 0.083 133.7);
Tailwind
colors: {
  custom: {
    50: '#687c56',
    500: '#2d4917',
    950: '#000000',
  },
}
SCSS
$custom: #2d4917;
$custom-light: #687c56;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4917",
  "rgb": {
    "r": 45,
    "g": 73,
    "b": 23
  },
  "hsl": {
    "h": 93.6,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.37063,
    "c": 0.08316,
    "h": 133.7
  },
  "luminance": 0.05385
}

Semantic roles & 50–950 ramp

primary
#2D4917
secondary
#623C80
accent
#4CDC9C
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2D4917

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

Preview Lab → · Contrast checker → · Palette generator →

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