#2D4104#2D4104

#2D4104 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.6% C 0.086 H 127.2°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#2D4104
RGBrgb(45, 65, 4)
HSLhsl(80, 88%, 14%)
HSVhsv(80, 94%, 25%)
CMYKcmyk(30.8%, 0%, 93.8%, 74.5%)
CIE-LABlab(24.79, -17.89, 31.35)
CIE-LCHlch(24.79, 36.10, 119.72°)
OKLaboklab(34.56% -0.0519 0.0684)
OKLCHoklch(34.56% 0.086 127.2)
XYZxyz(2.9944, 4.3472, 0.7962)
Luminance0.0435 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4104 #180441
analogous
#413604 #2D4104 #0E4104
triadic
#2D4104 #042D41 #41042D
tetradic
#2D4104 #044136 #180441 #41040E
square
#2D4104 #044136 #180441 #41040E
split-complementary
#2D4104 #040E41 #360441
monochromatic
#141D02 #141D02 #2D4104 #557B08 #7DB40B

Accessibility & contrast

On white

11.23
#2D4104 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2D4104 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4104
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4104#FFFFFF#000000##FFFFFF
##2D41041.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C00
Deuteranopia (green-blind)
#423A0A
Tritanopia (blue-blind)
#2F3D36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d4104;
/* rgb */ color: rgb(45, 65, 4);
/* oklch */ color: oklch(34.6% 0.086 127.2);
Tailwind
colors: {
  custom: {
    50: '#69754b',
    500: '#2d4104',
    950: '#000000',
  },
}
SCSS
$custom: #2d4104;
$custom-light: #69754b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4104",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 4
  },
  "hsl": {
    "h": 79.672,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.34559,
    "c": 0.08581,
    "h": 127.2
  },
  "luminance": 0.04347
}

Semantic roles & 50–950 ramp

primary
#2D4104
secondary
#3F1F82
accent
#29FF6F
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2D4104

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

Preview Lab → · Contrast checker → · Palette generator →

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