#2D4A0F#2D4A0F

#2D4A0F is a dark, moderate yellow-green. Relative luminance 0.055; OKLCH L 37.3% C 0.091 H 132.3°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#2D4A0F
RGBrgb(45, 74, 15)
HSLhsl(89, 66%, 17%)
HSVhsv(89, 80%, 29%)
CMYKcmyk(39.2%, 0%, 79.7%, 71%)
CIE-LABlab(28.09, -21.85, 30.06)
CIE-LCHlch(28.09, 37.16, 126.01°)
OKLaboklab(37.27% -0.0616 0.0676)
OKLCHoklch(37.27% 0.091 132.3)
XYZxyz(3.6171, 5.4898, 1.3209)
Luminance0.0549 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4A0F #2C0F4A
analogous
#4A4A0F #2D4A0F #0F4A0F
triadic
#2D4A0F #0F2D4A #4A0F2D
tetradic
#2D4A0F #0F4A4A #2C0F4A #4A0F0F
square
#2D4A0F #0F4A4A #2C0F4A #4A0F0F
split-complementary
#2D4A0F #0F0F4A #4A0F4A
monochromatic
#0F1905 #0F1905 #2D4A0F #4C7D19 #6BB024

Accessibility & contrast

On white

10.01
#2D4A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2D4A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4A0F
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4A0F#FFFFFF#000000##FFFFFF
##2D4A0F1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4405
Deuteranopia (green-blind)
#494115
Tritanopia (blue-blind)
#2E473E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d4a0f;
/* rgb */ color: rgb(45, 74, 15);
/* oklch */ color: oklch(37.3% 0.091 132.3);
Tailwind
colors: {
  custom: {
    50: '#697c52',
    500: '#2d4a0f',
    950: '#000000',
  },
}
SCSS
$custom: #2d4a0f;
$custom-light: #697c52;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4a0f",
  "rgb": {
    "r": 45,
    "g": 74,
    "b": 15
  },
  "hsl": {
    "h": 89.492,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.3727,
    "c": 0.09143,
    "h": 132.3
  },
  "luminance": 0.0549
}

Semantic roles & 50–950 ramp

primary
#2D4A0F
secondary
#5A3084
accent
#3FE992
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2D4A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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