#2D4814#2D4814

#2D4814 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.7% C 0.084 H 132.6°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#2D4814
RGBrgb(45, 72, 20)
HSLhsl(91, 57%, 18%)
HSVhsv(91, 72%, 28%)
CMYKcmyk(37.5%, 0%, 72.2%, 71.8%)
CIE-LABlab(27.42, -20.38, 27.04)
CIE-LCHlch(27.42, 33.86, 127.01°)
OKLaboklab(36.74% -0.0571 0.0621)
OKLCHoklch(36.74% 0.084 132.6)
XYZxyz(3.5258, 5.2430, 1.4879)
Luminance0.0524 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4814 #2F1448
analogous
#474814 #2D4814 #144815
triadic
#2D4814 #142D48 #48142D
tetradic
#2D4814 #144748 #2F1448 #481514
square
#2D4814 #144748 #2F1448 #481514
split-complementary
#2D4814 #151448 #481447
monochromatic
#0F1807 #0F1807 #2D4814 #4B7821 #69A82F

Accessibility & contrast

On white

10.25
#2D4814 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2D4814 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4814
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4814#FFFFFF#000000##FFFFFF
##2D48141.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B420D
Deuteranopia (green-blind)
#474018
Tritanopia (blue-blind)
#2D453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d4814;
/* rgb */ color: rgb(45, 72, 20);
/* oklch */ color: oklch(36.7% 0.084 132.6);
Tailwind
colors: {
  custom: {
    50: '#687b54',
    500: '#2d4814',
    950: '#000000',
  },
}
SCSS
$custom: #2d4814;
$custom-light: #687b54;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4814",
  "rgb": {
    "r": 45,
    "g": 72,
    "b": 20
  },
  "hsl": {
    "h": 91.154,
    "s": 56.522,
    "l": 18.039
  },
  "oklch": {
    "l": 0.36737,
    "c": 0.08435,
    "h": 132.6
  },
  "luminance": 0.05243
}

Semantic roles & 50–950 ramp

primary
#2D4814
secondary
#5D3880
accent
#48E097
background
#F6F7F5
surface
#EBEDE8
border
#C6C8C4
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2D4814

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

Preview Lab → · Contrast checker → · Palette generator →

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