#2D4D12#2D4D12

#2D4D12 is a dark, moderate yellow-green. Relative luminance 0.059; OKLCH L 38.2% C 0.094 H 133.7°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2D4D12
RGBrgb(45, 77, 18)
HSLhsl(93, 62%, 19%)
HSVhsv(93, 77%, 30%)
CMYKcmyk(41.6%, 0%, 76.6%, 69.8%)
CIE-LABlab(29.18, -23.11, 29.85)
CIE-LCHlch(29.18, 37.75, 127.74°)
OKLaboklab(38.17% -0.0647 0.0677)
OKLCHoklch(38.17% 0.094 133.7)
XYZxyz(3.8452, 5.9091, 1.5101)
Luminance0.0591 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4D12 #32124D
analogous
#4A4D12 #2D4D12 #124D14
triadic
#2D4D12 #122D4D #4D122D
tetradic
#2D4D12 #124A4D #32124D #4D1412
square
#2D4D12 #124A4D #32124D #4D1412
split-complementary
#2D4D12 #14124D #4D124A
monochromatic
#0E1906 #101B06 #2D4D12 #4A7F1E #67B029

Accessibility & contrast

On white

9.63
#2D4D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2D4D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4D12
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4D12#FFFFFF#000000##FFFFFF
##2D4D121.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504609
Deuteranopia (green-blind)
#4C4417
Tritanopia (blue-blind)
#2D4A41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d4d12;
/* rgb */ color: rgb(45, 77, 18);
/* oklch */ color: oklch(38.2% 0.094 133.7);
Tailwind
colors: {
  custom: {
    50: '#697f54',
    500: '#2d4d12',
    950: '#000000',
  },
}
SCSS
$custom: #2d4d12;
$custom-light: #697f54;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4d12",
  "rgb": {
    "r": 45,
    "g": 77,
    "b": 18
  },
  "hsl": {
    "h": 92.542,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38172,
    "c": 0.09363,
    "h": 133.7
  },
  "luminance": 0.05909
}

Semantic roles & 50–950 ramp

primary
#2D4D12
secondary
#613586
accent
#43E59B
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2D4D12

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

Preview Lab → · Contrast checker → · Palette generator →

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