#2D4818#2D4818

#2D4818 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.8% C 0.081 H 133.6°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#2D4818
RGBrgb(45, 72, 24)
HSLhsl(94, 50%, 19%)
HSVhsv(94, 67%, 28%)
CMYKcmyk(37.5%, 0%, 66.7%, 71.8%)
CIE-LABlab(27.46, -19.96, 25.03)
CIE-LCHlch(27.46, 32.01, 128.57°)
OKLaboklab(36.79% -0.0556 0.0583)
OKLCHoklch(36.79% 0.081 133.6)
XYZxyz(3.5644, 5.2584, 1.6912)
Luminance0.0526 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4818 #331848
analogous
#454818 #2D4818 #18481B
triadic
#2D4818 #182D48 #48182D
tetradic
#2D4818 #184548 #331848 #481B18
square
#2D4818 #184548 #331848 #481B18
split-complementary
#2D4818 #1B1848 #481845
monochromatic
#0E1708 #101A09 #2D4818 #4A7627 #66A437

Accessibility & contrast

On white

10.23
#2D4818 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4818
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4818#FFFFFF#000000##FFFFFF
##2D48181.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4213
Deuteranopia (green-blind)
#47401C
Tritanopia (blue-blind)
#2D453E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d4818;
/* rgb */ color: rgb(45, 72, 24);
/* oklch */ color: oklch(36.8% 0.081 133.6);
Tailwind
colors: {
  custom: {
    50: '#687b57',
    500: '#2d4818',
    950: '#000000',
  },
}
SCSS
$custom: #2d4818;
$custom-light: #687b57;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4818",
  "rgb": {
    "r": 45,
    "g": 72,
    "b": 24
  },
  "hsl": {
    "h": 93.75,
    "s": 50,
    "l": 18.824
  },
  "oklch": {
    "l": 0.36786,
    "c": 0.08058,
    "h": 133.6
  },
  "luminance": 0.05259
}

Semantic roles & 50–950 ramp

primary
#2D4818
secondary
#623D7F
accent
#4EDA9D
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2D4818

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

Preview Lab → · Contrast checker → · Palette generator →

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