#2D4711#2D4711

#2D4711 is a dark, moderate yellow-green. Relative luminance 0.051; OKLCH L 36.4% C 0.085 H 131.7°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#2D4711
RGBrgb(45, 71, 17)
HSLhsl(89, 61%, 17%)
HSVhsv(89, 76%, 28%)
CMYKcmyk(36.6%, 0%, 76.1%, 72.2%)
CIE-LABlab(27.03, -20.14, 28.08)
CIE-LCHlch(27.03, 34.56, 125.65°)
OKLaboklab(36.42% -0.0567 0.0638)
OKLCHoklch(36.42% 0.085 131.7)
XYZxyz(3.4366, 5.1047, 1.3344)
Luminance0.0510 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4711 #2B1147
analogous
#474611 #2D4711 #124711
triadic
#2D4711 #112D47 #47112D
tetradic
#2D4711 #114746 #2B1147 #471112
square
#2D4711 #114746 #2B1147 #471112
split-complementary
#2D4711 #111247 #461147
monochromatic
#101906 #101906 #2D4711 #4C781D #6CAA29

Accessibility & contrast

On white

10.39
#2D4711 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2D4711 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4711
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4711#FFFFFF#000000##FFFFFF
##2D47111.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4109
Deuteranopia (green-blind)
#473F16
Tritanopia (blue-blind)
#2E443C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d4711;
/* rgb */ color: rgb(45, 71, 17);
/* oklch */ color: oklch(36.4% 0.085 131.7);
Tailwind
colors: {
  custom: {
    50: '#687a52',
    500: '#2d4711',
    950: '#000000',
  },
}
SCSS
$custom: #2d4711;
$custom-light: #687a52;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4711",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 17
  },
  "hsl": {
    "h": 88.889,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.36415,
    "c": 0.08537,
    "h": 131.7
  },
  "luminance": 0.05105
}

Semantic roles & 50–950 ramp

primary
#2D4711
secondary
#583381
accent
#43E491
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2D4711

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

Preview Lab → · Contrast checker → · Palette generator →

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