#2D4C0F#2D4C0F

#2D4C0F is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 37.9% C 0.094 H 132.9°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2D4C0F
RGBrgb(45, 76, 15)
HSLhsl(90, 67%, 18%)
HSVhsv(90, 80%, 30%)
CMYKcmyk(40.8%, 0%, 80.3%, 70.2%)
CIE-LABlab(28.80, -22.85, 30.77)
CIE-LCHlch(28.80, 38.33, 126.60°)
OKLaboklab(37.85% -0.0643 0.0691)
OKLCHoklch(37.85% 0.094 132.9)
XYZxyz(3.7528, 5.7611, 1.3661)
Luminance0.0576 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4C0F #2E0F4C
analogous
#4B4C0F #2D4C0F #0F4C10
triadic
#2D4C0F #0F2D4C #4C0F2D
tetradic
#2D4C0F #0F4B4C #2E0F4C #4C100F
square
#2D4C0F #0F4B4C #2E0F4C #4C100F
split-complementary
#2D4C0F #100F4C #4C0F4B
monochromatic
#0F1A05 #0F1A05 #2D4C0F #4B7F19 #6AB223

Accessibility & contrast

On white

9.76
#2D4C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2D4C0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4C0F
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4C0F#FFFFFF#000000##FFFFFF
##2D4C0F1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4505
Deuteranopia (green-blind)
#4B4315
Tritanopia (blue-blind)
#2D4940
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d4c0f;
/* rgb */ color: rgb(45, 76, 15);
/* oklch */ color: oklch(37.9% 0.094 132.9);
Tailwind
colors: {
  custom: {
    50: '#697e52',
    500: '#2d4c0f',
    950: '#000000',
  },
}
SCSS
$custom: #2d4c0f;
$custom-light: #697e52;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4c0f",
  "rgb": {
    "r": 45,
    "g": 76,
    "b": 15
  },
  "hsl": {
    "h": 90.492,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37854,
    "c": 0.09438,
    "h": 132.9
  },
  "luminance": 0.05761
}

Semantic roles & 50–950 ramp

primary
#2D4C0F
secondary
#5C3186
accent
#3EEA95
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2D4C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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