#2D4112#2D4112

#2D4112 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.7% C 0.075 H 129.3°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#2D4112
RGBrgb(45, 65, 18)
HSLhsl(86, 57%, 16%)
HSVhsv(86, 72%, 25%)
CMYKcmyk(30.8%, 0%, 72.3%, 74.5%)
CIE-LABlab(24.90, -16.84, 25.33)
CIE-LCHlch(24.90, 30.41, 123.62°)
OKLaboklab(34.68% -0.0476 0.0582)
OKLCHoklch(34.68% 0.075 129.3)
XYZxyz(3.0817, 4.3821, 1.2556)
Luminance0.0438 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4112 #261241
analogous
#413E12 #2D4112 #164112
triadic
#2D4112 #122D41 #41122D
tetradic
#2D4112 #12413E #261241 #411216
square
#2D4112 #12413E #261241 #411216
split-complementary
#2D4112 #121641 #3E1241
monochromatic
#111807 #111807 #2D4112 #4E711F #6FA12D

Accessibility & contrast

On white

11.19
#2D4112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2D4112 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4112
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4112#FFFFFF#000000##FFFFFF
##2D41121.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443C0C
Deuteranopia (green-blind)
#423B16
Tritanopia (blue-blind)
#2E3E37
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d4112;
/* rgb */ color: rgb(45, 65, 18);
/* oklch */ color: oklch(34.7% 0.075 129.3);
Tailwind
colors: {
  custom: {
    50: '#687552',
    500: '#2d4112',
    950: '#000000',
  },
}
SCSS
$custom: #2d4112;
$custom-light: #687552;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4112",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 18
  },
  "hsl": {
    "h": 85.532,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.34682,
    "c": 0.07515,
    "h": 129.3
  },
  "luminance": 0.04382
}

Semantic roles & 50–950 ramp

primary
#2D4112
secondary
#52357A
accent
#48E089
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2D4112

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

Preview Lab → · Contrast checker → · Palette generator →

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