#2D4A18#2D4A18

#2D4A18 is a dark, moderate yellow-green. Relative luminance 0.055; OKLCH L 37.4% C 0.084 H 134.2°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#2D4A18
RGBrgb(45, 74, 24)
HSLhsl(95, 51%, 19%)
HSVhsv(95, 68%, 29%)
CMYKcmyk(39.2%, 0%, 67.6%, 71%)
CIE-LABlab(28.17, -21.00, 25.83)
CIE-LCHlch(28.17, 33.29, 129.11°)
OKLaboklab(37.37% -0.0584 0.0601)
OKLCHoklch(37.37% 0.084 134.2)
XYZxyz(3.6958, 5.5212, 1.7350)
Luminance0.0552 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4A18 #35184A
analogous
#464A18 #2D4A18 #184A1C
triadic
#2D4A18 #182D4A #4A182D
tetradic
#2D4A18 #18464A #35184A #4A1C18
square
#2D4A18 #18464A #35184A #4A1C18
split-complementary
#2D4A18 #1C184A #4A1846
monochromatic
#0E1707 #111C09 #2D4A18 #497827 #65A636

Accessibility & contrast

On white

9.98
#2D4A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2D4A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4A18
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4A18#FFFFFF#000000##FFFFFF
##2D4A181.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4412
Deuteranopia (green-blind)
#49421C
Tritanopia (blue-blind)
#2D473F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d4a18;
/* rgb */ color: rgb(45, 74, 24);
/* oklch */ color: oklch(37.4% 0.084 134.2);
Tailwind
colors: {
  custom: {
    50: '#687c57',
    500: '#2d4a18',
    950: '#000000',
  },
}
SCSS
$custom: #2d4a18;
$custom-light: #687c57;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4a18",
  "rgb": {
    "r": 45,
    "g": 74,
    "b": 24
  },
  "hsl": {
    "h": 94.8,
    "s": 51.02,
    "l": 19.216
  },
  "oklch": {
    "l": 0.37366,
    "c": 0.08379,
    "h": 134.2
  },
  "luminance": 0.05521
}

Semantic roles & 50–950 ramp

primary
#2D4A18
secondary
#643D81
accent
#4DDA9F
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2D4A18

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

Preview Lab → · Contrast checker → · Palette generator →

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