#2D4E18#2D4E18

#2D4E18 is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.5% C 0.090 H 135.3°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#2D4E18
RGBrgb(45, 78, 24)
HSLhsl(97, 53%, 20%)
HSVhsv(97, 69%, 31%)
CMYKcmyk(42.3%, 0%, 69.2%, 69.4%)
CIE-LABlab(29.59, -23.03, 27.41)
CIE-LCHlch(29.59, 35.80, 130.03°)
OKLaboklab(38.53% -0.064 0.0634)
OKLCHoklch(38.53% 0.09 135.3)
XYZxyz(3.9714, 6.0724, 1.8268)
Luminance0.0607 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4E18 #39184E
analogous
#484E18 #2D4E18 #184E1E
triadic
#2D4E18 #182D4E #4E182D
tetradic
#2D4E18 #18484E #39184E #4E1E18
square
#2D4E18 #18484E #39184E #4E1E18
split-complementary
#2D4E18 #1E184E #4E1848
monochromatic
#0D1707 #121F0A #2D4E18 #487D26 #63AC35

Accessibility & contrast

On white

9.48
#2D4E18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2D4E18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4E18
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4E18#FFFFFF#000000##FFFFFF
##2D4E181.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514712
Deuteranopia (green-blind)
#4C451C
Tritanopia (blue-blind)
#2C4B43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d4e18;
/* rgb */ color: rgb(45, 78, 24);
/* oklch */ color: oklch(38.5% 0.090 135.3);
Tailwind
colors: {
  custom: {
    50: '#698057',
    500: '#2d4e18',
    950: '#000000',
  },
}
SCSS
$custom: #2d4e18;
$custom-light: #698057;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4e18",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 24
  },
  "hsl": {
    "h": 96.667,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.38527,
    "c": 0.09007,
    "h": 135.3
  },
  "luminance": 0.06073
}

Semantic roles & 50–950 ramp

primary
#2D4E18
secondary
#693D85
accent
#4BDCA4
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2D4E18

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

Preview Lab → · Contrast checker → · Palette generator →

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