#2D4918#2D4918

#2D4918 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.1% C 0.082 H 133.9°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#2D4918
RGBrgb(45, 73, 24)
HSLhsl(94, 51%, 19%)
HSVhsv(94, 67%, 29%)
CMYKcmyk(38.4%, 0%, 67.1%, 71.4%)
CIE-LABlab(27.81, -20.48, 25.43)
CIE-LCHlch(27.81, 32.65, 128.85°)
OKLaboklab(37.08% -0.057 0.0592)
OKLCHoklch(37.08% 0.082 133.9)
XYZxyz(3.6295, 5.3888, 1.7129)
Luminance0.0539 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4918 #341849
analogous
#464918 #2D4918 #18491C
triadic
#2D4918 #182D49 #49182D
tetradic
#2D4918 #184649 #341849 #491C18
square
#2D4918 #184649 #341849 #491C18
split-complementary
#2D4918 #1C1849 #491846
monochromatic
#0E1708 #111B09 #2D4918 #497727 #66A536

Accessibility & contrast

On white

10.11
#2D4918 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2D4918 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4918
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4918#FFFFFF#000000##FFFFFF
##2D49181.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4313
Deuteranopia (green-blind)
#48411C
Tritanopia (blue-blind)
#2D463F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d4918;
/* rgb */ color: rgb(45, 73, 24);
/* oklch */ color: oklch(37.1% 0.082 133.9);
Tailwind
colors: {
  custom: {
    50: '#687c57',
    500: '#2d4918',
    950: '#000000',
  },
}
SCSS
$custom: #2d4918;
$custom-light: #687c57;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4918",
  "rgb": {
    "r": 45,
    "g": 73,
    "b": 24
  },
  "hsl": {
    "h": 94.286,
    "s": 50.515,
    "l": 19.02
  },
  "oklch": {
    "l": 0.37076,
    "c": 0.08218,
    "h": 133.9
  },
  "luminance": 0.05389
}

Semantic roles & 50–950 ramp

primary
#2D4918
secondary
#633D80
accent
#4EDA9E
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2D4918

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

Preview Lab → · Contrast checker → · Palette generator →

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