#2D4815#2D4815

#2D4815 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.7% C 0.083 H 132.8°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#2D4815
RGBrgb(45, 72, 21)
HSLhsl(92, 55%, 18%)
HSVhsv(92, 71%, 28%)
CMYKcmyk(37.5%, 0%, 70.8%, 71.8%)
CIE-LABlab(27.43, -20.28, 26.55)
CIE-LCHlch(27.43, 33.41, 127.38°)
OKLaboklab(36.75% -0.0567 0.0612)
OKLCHoklch(36.75% 0.083 132.8)
XYZxyz(3.5349, 5.2466, 1.5358)
Luminance0.0525 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4815 #301548
analogous
#464815 #2D4815 #154816
triadic
#2D4815 #152D48 #48152D
tetradic
#2D4815 #154648 #301548 #481615
square
#2D4815 #154648 #301548 #481615
split-complementary
#2D4815 #161548 #481546
monochromatic
#0F1807 #0F1907 #2D4815 #4B7723 #68A731

Accessibility & contrast

On white

10.25
#2D4815 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2D4815 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4815
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4815#FFFFFF#000000##FFFFFF
##2D48151.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B420F
Deuteranopia (green-blind)
#474019
Tritanopia (blue-blind)
#2D453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d4815;
/* rgb */ color: rgb(45, 72, 21);
/* oklch */ color: oklch(36.7% 0.083 132.8);
Tailwind
colors: {
  custom: {
    50: '#687b55',
    500: '#2d4815',
    950: '#000000',
  },
}
SCSS
$custom: #2d4815;
$custom-light: #687b55;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4815",
  "rgb": {
    "r": 45,
    "g": 72,
    "b": 21
  },
  "hsl": {
    "h": 91.765,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.36749,
    "c": 0.08345,
    "h": 132.8
  },
  "luminance": 0.05247
}

Semantic roles & 50–950 ramp

primary
#2D4815
secondary
#5E3980
accent
#4ADE98
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2D4815

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

Preview Lab → · Contrast checker → · Palette generator →

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