#2D4D18#2D4D18

#2D4D18 is a dark, moderate yellow-green. Relative luminance 0.059; OKLCH L 38.2% C 0.089 H 135.0°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#2D4D18
RGBrgb(45, 77, 24)
HSLhsl(96, 52%, 20%)
HSVhsv(96, 69%, 30%)
CMYKcmyk(41.6%, 0%, 68.8%, 69.8%)
CIE-LABlab(29.24, -22.53, 27.02)
CIE-LCHlch(29.24, 35.18, 129.82°)
OKLaboklab(38.24% -0.0626 0.0626)
OKLCHoklch(38.24% 0.089 135)
XYZxyz(3.9008, 5.9314, 1.8033)
Luminance0.0593 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4D18 #38184D
analogous
#484D18 #2D4D18 #184D1D
triadic
#2D4D18 #182D4D #4D182D
tetradic
#2D4D18 #18484D #38184D #4D1D18
square
#2D4D18 #18484D #38184D #4D1D18
split-complementary
#2D4D18 #1D184D #4D1848
monochromatic
#0E1707 #121E09 #2D4D18 #487C27 #64AA35

Accessibility & contrast

On white

9.60
#2D4D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2D4D18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4D18
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4D18#FFFFFF#000000##FFFFFF
##2D4D181.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504712
Deuteranopia (green-blind)
#4C441C
Tritanopia (blue-blind)
#2C4A42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d4d18;
/* rgb */ color: rgb(45, 77, 24);
/* oklch */ color: oklch(38.2% 0.089 135.0);
Tailwind
colors: {
  custom: {
    50: '#697f57',
    500: '#2d4d18',
    950: '#000000',
  },
}
SCSS
$custom: #2d4d18;
$custom-light: #697f57;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4d18",
  "rgb": {
    "r": 45,
    "g": 77,
    "b": 24
  },
  "hsl": {
    "h": 96.226,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38237,
    "c": 0.08851,
    "h": 135
  },
  "luminance": 0.05932
}

Semantic roles & 50–950 ramp

primary
#2D4D18
secondary
#683D84
accent
#4CDCA3
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2D4D18

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

Preview Lab → · Contrast checker → · Palette generator →

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