#2D4A12#2D4A12

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

Color values

HEX#2D4A12
RGBrgb(45, 74, 18)
HSLhsl(91, 61%, 18%)
HSVhsv(91, 76%, 29%)
CMYKcmyk(39.2%, 0%, 75.7%, 71%)
CIE-LABlab(28.11, -21.60, 28.74)
CIE-LCHlch(28.11, 35.95, 126.93°)
OKLaboklab(37.3% -0.0606 0.0653)
OKLCHoklch(37.3% 0.089 132.9)
XYZxyz(3.6401, 5.4990, 1.4418)
Luminance0.0550 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4A12 #2F124A
analogous
#494A12 #2D4A12 #124A13
triadic
#2D4A12 #122D4A #4A122D
tetradic
#2D4A12 #12494A #2F124A #4A1312
square
#2D4A12 #12494A #2F124A #4A1312
split-complementary
#2D4A12 #13124A #4A1249
monochromatic
#0F1906 #0F1906 #2D4A12 #4B7B1E #69AC2A

Accessibility & contrast

On white

10.00
#2D4A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4A12
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4A12#FFFFFF#000000##FFFFFF
##2D4A121.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D440A
Deuteranopia (green-blind)
#494217
Tritanopia (blue-blind)
#2D473F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d4a12;
/* rgb */ color: rgb(45, 74, 18);
/* oklch */ color: oklch(37.3% 0.089 132.9);
Tailwind
colors: {
  custom: {
    50: '#697c53',
    500: '#2d4a12',
    950: '#000000',
  },
}
SCSS
$custom: #2d4a12;
$custom-light: #697c53;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4a12",
  "rgb": {
    "r": 45,
    "g": 74,
    "b": 18
  },
  "hsl": {
    "h": 91.071,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37298,
    "c": 0.08913,
    "h": 132.9
  },
  "luminance": 0.05499
}

Semantic roles & 50–950 ramp

primary
#2D4A12
secondary
#5D3583
accent
#44E497
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2D4A12

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

Preview Lab → · Contrast checker → · Palette generator →

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