#2D4E1B#2D4E1B

#2D4E1B is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.6% C 0.087 H 136.0°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#2D4E1B
RGBrgb(45, 78, 27)
HSLhsl(99, 49%, 21%)
HSVhsv(99, 65%, 31%)
CMYKcmyk(42.3%, 0%, 65.4%, 69.4%)
CIE-LABlab(29.63, -22.69, 25.90)
CIE-LCHlch(29.63, 34.43, 131.23°)
OKLaboklab(38.57% -0.0628 0.0606)
OKLCHoklch(38.57% 0.087 136)
XYZxyz(4.0043, 6.0856, 2.0003)
Luminance0.0609 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4E1B #3C1B4E
analogous
#464E1B #2D4E1B #1B4E23
triadic
#2D4E1B #1B2D4E #4E1B2D
tetradic
#2D4E1B #1B464E #3C1B4E #4E231B
square
#2D4E1B #1B464E #3C1B4E #4E231B
split-complementary
#2D4E1B #231B4E #4E1B46
monochromatic
#0D1708 #13210B #2D4E1B #477B2B #61A93A

Accessibility & contrast

On white

9.47
#2D4E1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2D4E1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4E1B
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4E1B#FFFFFF#000000##FFFFFF
##2D4E1B1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d4e1b;
/* rgb */ color: rgb(45, 78, 27);
/* oklch */ color: oklch(38.6% 0.087 136.0);
Tailwind
colors: {
  custom: {
    50: '#698059',
    500: '#2d4e1b',
    950: '#000000',
  },
}
SCSS
$custom: #2d4e1b;
$custom-light: #698059;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4e1b",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 27
  },
  "hsl": {
    "h": 98.824,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.38565,
    "c": 0.08723,
    "h": 136
  },
  "luminance": 0.06086
}

Semantic roles & 50–950 ramp

primary
#2D4E1B
secondary
#6C4184
accent
#50D8A8
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A04
muted
#7A7C79

Preview Lab

Preview with #2D4E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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