#2D5019#2D5019

#2D5019 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.1% C 0.092 H 135.9°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2D5019
RGBrgb(45, 80, 25)
HSLhsl(98, 52%, 21%)
HSVhsv(98, 69%, 31%)
CMYKcmyk(43.7%, 0%, 68.8%, 68.6%)
CIE-LABlab(30.32, -23.91, 27.70)
CIE-LCHlch(30.32, 36.59, 130.80°)
OKLaboklab(39.12% -0.0663 0.0642)
OKLCHoklch(39.12% 0.092 135.9)
XYZxyz(4.1262, 6.3652, 1.9307)
Luminance0.0636 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5019 #3C1950
analogous
#485019 #2D5019 #195020
triadic
#2D5019 #192D50 #50192D
tetradic
#2D5019 #194850 #3C1950 #502019
square
#2D5019 #194850 #3C1950 #502019
split-complementary
#2D5019 #201950 #501948
monochromatic
#0D1707 #13210A #2D5019 #477F28 #61AD36

Accessibility & contrast

On white

9.24
#2D5019 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2D5019 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5019
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5019#FFFFFF#000000##FFFFFF
##2D50191.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534912
Deuteranopia (green-blind)
#4E461D
Tritanopia (blue-blind)
#2C4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d5019;
/* rgb */ color: rgb(45, 80, 25);
/* oklch */ color: oklch(39.1% 0.092 135.9);
Tailwind
colors: {
  custom: {
    50: '#698158',
    500: '#2d5019',
    950: '#000000',
  },
}
SCSS
$custom: #2d5019;
$custom-light: #698158;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5019",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 25
  },
  "hsl": {
    "h": 98.182,
    "s": 52.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.3912,
    "c": 0.09225,
    "h": 135.9
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#2D5019
secondary
#6C3E86
accent
#4CDCA8
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2D5019

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

Preview Lab → · Contrast checker → · Palette generator →

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