#2D4B18#2D4B18

#2D4B18 is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.7% C 0.085 H 134.5°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#2D4B18
RGBrgb(45, 75, 24)
HSLhsl(95, 52%, 19%)
HSVhsv(95, 68%, 29%)
CMYKcmyk(40%, 0%, 68%, 70.6%)
CIE-LABlab(28.53, -21.51, 26.23)
CIE-LCHlch(28.53, 33.92, 129.36°)
OKLaboklab(37.66% -0.0598 0.0609)
OKLCHoklch(37.66% 0.085 134.5)
XYZxyz(3.7631, 5.6558, 1.7574)
Luminance0.0566 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4B18 #36184B
analogous
#474B18 #2D4B18 #184B1D
triadic
#2D4B18 #182D4B #4B182D
tetradic
#2D4B18 #18474B #36184B #4B1D18
square
#2D4B18 #18474B #36184B #4B1D18
split-complementary
#2D4B18 #1D184B #4B1847
monochromatic
#0E1707 #111D09 #2D4B18 #497927 #65A836

Accessibility & contrast

On white

9.85
#2D4B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2D4B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4B18
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4B18#FFFFFF#000000##FFFFFF
##2D4B181.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4512
Deuteranopia (green-blind)
#4A421C
Tritanopia (blue-blind)
#2D4840
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d4b18;
/* rgb */ color: rgb(45, 75, 24);
/* oklch */ color: oklch(37.7% 0.085 134.5);
Tailwind
colors: {
  custom: {
    50: '#687d57',
    500: '#2d4b18',
    950: '#000000',
  },
}
SCSS
$custom: #2d4b18;
$custom-light: #687d57;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4b18",
  "rgb": {
    "r": 45,
    "g": 75,
    "b": 24
  },
  "hsl": {
    "h": 95.294,
    "s": 51.515,
    "l": 19.412
  },
  "oklch": {
    "l": 0.37656,
    "c": 0.08537,
    "h": 134.5
  },
  "luminance": 0.05656
}

Semantic roles & 50–950 ramp

primary
#2D4B18
secondary
#653D82
accent
#4DDBA0
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2D4B18

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

Preview Lab → · Contrast checker → · Palette generator →

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