#2D4D0C#2D4D0C

#2D4D0C is a dark, moderate yellow-green. Relative luminance 0.059; OKLCH L 38.1% C 0.098 H 132.8°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#2D4D0C
RGBrgb(45, 77, 12)
HSLhsl(90, 73%, 17%)
HSVhsv(90, 84%, 30%)
CMYKcmyk(41.6%, 0%, 84.4%, 69.8%)
CIE-LABlab(29.14, -23.56, 32.29)
CIE-LCHlch(29.14, 39.97, 126.11°)
OKLaboklab(38.12% -0.0664 0.0718)
OKLCHoklch(38.12% 0.098 132.8)
XYZxyz(3.8024, 5.8920, 1.2847)
Luminance0.0589 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4D0C #2C0C4D
analogous
#4D4C0C #2D4D0C #0D4D0C
triadic
#2D4D0C #0C2D4D #4D0C2D
tetradic
#2D4D0C #0C4D4C #2C0C4D #4D0C0D
square
#2D4D0C #0C4D4C #2C0C4D #4D0C0D
split-complementary
#2D4D0C #0C0D4D #4C0C4D
monochromatic
#0F1A04 #0F1A04 #2D4D0C #4C8214 #6BB71D

Accessibility & contrast

On white

9.64
#2D4D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4D0C
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4D0C#FFFFFF#000000##FFFFFF
##2D4D0C1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d4d0c;
/* rgb */ color: rgb(45, 77, 12);
/* oklch */ color: oklch(38.1% 0.098 132.8);
Tailwind
colors: {
  custom: {
    50: '#697f51',
    500: '#2d4d0c',
    950: '#000000',
  },
}
SCSS
$custom: #2d4d0c;
$custom-light: #697f51;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4d0c",
  "rgb": {
    "r": 45,
    "g": 77,
    "b": 12
  },
  "hsl": {
    "h": 89.538,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.38123,
    "c": 0.09779,
    "h": 132.8
  },
  "luminance": 0.05892
}

Semantic roles & 50–950 ramp

primary
#2D4D0C
secondary
#5A2C89
accent
#38F092
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2D4D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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