#2D4004#2D4004

#2D4004 is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.3% C 0.084 H 126.7°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2D4004
RGBrgb(45, 64, 4)
HSLhsl(79, 88%, 13%)
HSVhsv(79, 94%, 25%)
CMYKcmyk(29.7%, 0%, 93.8%, 74.9%)
CIE-LABlab(24.43, -17.35, 31.00)
CIE-LCHlch(24.43, 35.53, 119.24°)
OKLaboklab(34.27% -0.0504 0.0677)
OKLCHoklch(34.27% 0.084 126.7)
XYZxyz(2.9375, 4.2334, 0.7772)
Luminance0.0423 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4004 #170440
analogous
#403504 #2D4004 #0F4004
triadic
#2D4004 #042D40 #40042D
tetradic
#2D4004 #044035 #170440 #40040F
square
#2D4004 #044035 #170440 #40040F
split-complementary
#2D4004 #040F40 #350440
monochromatic
#141D02 #141D02 #2D4004 #557A08 #7EB30B

Accessibility & contrast

On white

11.37
#2D4004 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2D4004 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4004
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4004#FFFFFF#000000##FFFFFF
##2D40041.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B00
Deuteranopia (green-blind)
#413A0A
Tritanopia (blue-blind)
#2F3C35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d4004;
/* rgb */ color: rgb(45, 64, 4);
/* oklch */ color: oklch(34.3% 0.084 126.7);
Tailwind
colors: {
  custom: {
    50: '#69754b',
    500: '#2d4004',
    950: '#000000',
  },
}
SCSS
$custom: #2d4004;
$custom-light: #69754b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4004",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 4
  },
  "hsl": {
    "h": 79,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.34267,
    "c": 0.0844,
    "h": 126.7
  },
  "luminance": 0.04233
}

Semantic roles & 50–950 ramp

primary
#2D4004
secondary
#3E1F81
accent
#29FE6D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2D4004

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

Preview Lab → · Contrast checker → · Palette generator →

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