#2D4811#2D4811

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

Color values

HEX#2D4811
RGBrgb(45, 72, 17)
HSLhsl(89, 62%, 17%)
HSVhsv(89, 76%, 28%)
CMYKcmyk(37.5%, 0%, 76.4%, 71.8%)
CIE-LABlab(27.39, -20.66, 28.45)
CIE-LCHlch(27.39, 35.16, 125.99°)
OKLaboklab(36.71% -0.0582 0.0646)
OKLCHoklch(36.71% 0.087 132)
XYZxyz(3.5007, 5.2330, 1.3558)
Luminance0.0523 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4811 #2C1148
analogous
#484811 #2D4811 #114811
triadic
#2D4811 #112D48 #48112D
tetradic
#2D4811 #114848 #2C1148 #481111
square
#2D4811 #114848 #2C1148 #481111
split-complementary
#2D4811 #111148 #481148
monochromatic
#0F1906 #0F1906 #2D4811 #4C7A1D #6BAB28

Accessibility & contrast

On white

10.26
#2D4811 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4811
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4811#FFFFFF#000000##FFFFFF
##2D48111.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4209
Deuteranopia (green-blind)
#484016
Tritanopia (blue-blind)
#2E453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d4811;
/* rgb */ color: rgb(45, 72, 17);
/* oklch */ color: oklch(36.7% 0.087 132.0);
Tailwind
colors: {
  custom: {
    50: '#697b53',
    500: '#2d4811',
    950: '#000000',
  },
}
SCSS
$custom: #2d4811;
$custom-light: #697b53;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4811",
  "rgb": {
    "r": 45,
    "g": 72,
    "b": 17
  },
  "hsl": {
    "h": 89.455,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36706,
    "c": 0.0869,
    "h": 132
  },
  "luminance": 0.05233
}

Semantic roles & 50–950 ramp

primary
#2D4811
secondary
#5A3382
accent
#43E592
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2D4811

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

Preview Lab → · Contrast checker → · Palette generator →

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