#2D4512#2D4512

#2D4512 is a dark, moderate yellow-green. Relative luminance 0.049; OKLCH L 35.8% C 0.081 H 131.1°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#2D4512
RGBrgb(45, 69, 18)
HSLhsl(88, 59%, 17%)
HSVhsv(88, 74%, 27%)
CMYKcmyk(34.8%, 0%, 73.9%, 72.9%)
CIE-LABlab(26.33, -19.00, 26.86)
CIE-LCHlch(26.33, 32.90, 125.28°)
OKLaboklab(35.84% -0.0535 0.0614)
OKLCHoklch(35.84% 0.081 131.1)
XYZxyz(3.3195, 4.8577, 1.3349)
Luminance0.0486 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4512 #2A1245
analogous
#454412 #2D4512 #144512
triadic
#2D4512 #122D45 #45122D
tetradic
#2D4512 #124544 #2A1245 #451214
square
#2D4512 #124544 #2A1245 #451214
split-complementary
#2D4512 #121445 #441245
monochromatic
#101806 #101806 #2D4512 #4D761F #6CA62B

Accessibility & contrast

On white

10.65
#2D4512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2D4512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4512
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4512#FFFFFF#000000##FFFFFF
##2D45121.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F0B
Deuteranopia (green-blind)
#453E16
Tritanopia (blue-blind)
#2E423B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d4512;
/* rgb */ color: rgb(45, 69, 18);
/* oklch */ color: oklch(35.8% 0.081 131.1);
Tailwind
colors: {
  custom: {
    50: '#687953',
    500: '#2d4512',
    950: '#000000',
  },
}
SCSS
$custom: #2d4512;
$custom-light: #687953;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4512",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 18
  },
  "hsl": {
    "h": 88.235,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.35843,
    "c": 0.08144,
    "h": 131.1
  },
  "luminance": 0.04858
}

Semantic roles & 50–950 ramp

primary
#2D4512
secondary
#57357E
accent
#46E28F
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2D4512

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

Preview Lab → · Contrast checker → · Palette generator →

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