#2D4612#2D4612

#2D4612 is a dark, moderate yellow-green. Relative luminance 0.050; OKLCH L 36.1% C 0.083 H 131.5°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#2D4612
RGBrgb(45, 70, 18)
HSLhsl(89, 59%, 17%)
HSVhsv(89, 74%, 27%)
CMYKcmyk(35.7%, 0%, 74.3%, 72.5%)
CIE-LABlab(26.68, -19.53, 27.24)
CIE-LCHlch(26.68, 33.52, 125.64°)
OKLaboklab(36.13% -0.055 0.0622)
OKLCHoklch(36.13% 0.083 131.5)
XYZxyz(3.3815, 4.9818, 1.3556)
Luminance0.0498 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4612 #2B1246
analogous
#464512 #2D4612 #134612
triadic
#2D4612 #122D46 #46122D
tetradic
#2D4612 #124645 #2B1246 #461213
square
#2D4612 #124645 #2B1246 #461213
split-complementary
#2D4612 #121346 #451246
monochromatic
#101806 #101806 #2D4612 #4C771F #6CA72B

Accessibility & contrast

On white

10.52
#2D4612 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2D4612 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4612
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4612#FFFFFF#000000##FFFFFF
##2D46121.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49400B
Deuteranopia (green-blind)
#463E16
Tritanopia (blue-blind)
#2E433B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d4612;
/* rgb */ color: rgb(45, 70, 18);
/* oklch */ color: oklch(36.1% 0.083 131.5);
Tailwind
colors: {
  custom: {
    50: '#687953',
    500: '#2d4612',
    950: '#000000',
  },
}
SCSS
$custom: #2d4612;
$custom-light: #687953;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4612",
  "rgb": {
    "r": 45,
    "g": 70,
    "b": 18
  },
  "hsl": {
    "h": 88.846,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.36134,
    "c": 0.08299,
    "h": 131.5
  },
  "luminance": 0.04982
}

Semantic roles & 50–950 ramp

primary
#2D4612
secondary
#58357F
accent
#46E291
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2D4612

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

Preview Lab → · Contrast checker → · Palette generator →

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