#2D4C12#2D4C12

#2D4C12 is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 37.9% C 0.092 H 133.4°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#2D4C12
RGBrgb(45, 76, 18)
HSLhsl(92, 62%, 18%)
HSVhsv(92, 76%, 30%)
CMYKcmyk(40.8%, 0%, 76.3%, 70.2%)
CIE-LABlab(28.83, -22.61, 29.48)
CIE-LCHlch(28.83, 37.15, 127.49°)
OKLaboklab(37.88% -0.0634 0.0669)
OKLCHoklch(37.88% 0.092 133.4)
XYZxyz(3.7757, 5.7703, 1.4870)
Luminance0.0577 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4C12 #31124C
analogous
#4A4C12 #2D4C12 #124C14
triadic
#2D4C12 #122D4C #4C122D
tetradic
#2D4C12 #124A4C #31124C #4C1412
square
#2D4C12 #124A4C #31124C #4C1412
split-complementary
#2D4C12 #14124C #4C124A
monochromatic
#0F1906 #101B06 #2D4C12 #4A7D1E #68AF29

Accessibility & contrast

On white

9.75
#2D4C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2D4C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4C12
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4C12#FFFFFF#000000##FFFFFF
##2D4C121.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4609
Deuteranopia (green-blind)
#4B4317
Tritanopia (blue-blind)
#2D4940
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d4c12;
/* rgb */ color: rgb(45, 76, 18);
/* oklch */ color: oklch(37.9% 0.092 133.4);
Tailwind
colors: {
  custom: {
    50: '#697e54',
    500: '#2d4c12',
    950: '#000000',
  },
}
SCSS
$custom: #2d4c12;
$custom-light: #697e54;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4c12",
  "rgb": {
    "r": 45,
    "g": 76,
    "b": 18
  },
  "hsl": {
    "h": 92.069,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.37881,
    "c": 0.09213,
    "h": 133.4
  },
  "luminance": 0.0577
}

Semantic roles & 50–950 ramp

primary
#2D4C12
secondary
#603585
accent
#43E599
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2D4C12

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

Preview Lab → · Contrast checker → · Palette generator →

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