#2D4012#2D4012

#2D4012 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.4% C 0.074 H 128.8°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#2D4012
RGBrgb(45, 64, 18)
HSLhsl(85, 56%, 16%)
HSVhsv(85, 72%, 25%)
CMYKcmyk(29.7%, 0%, 71.9%, 74.9%)
CIE-LABlab(24.54, -16.29, 24.94)
CIE-LCHlch(24.54, 29.79, 123.15°)
OKLaboklab(34.39% -0.0461 0.0573)
OKLCHoklch(34.39% 0.074 128.8)
XYZxyz(3.0248, 4.2683, 1.2366)
Luminance0.0427 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4012 #251240
analogous
#403C12 #2D4012 #164012
triadic
#2D4012 #122D40 #40122D
tetradic
#2D4012 #12403C #251240 #401216
square
#2D4012 #12403C #251240 #401216
split-complementary
#2D4012 #121640 #3C1240
monochromatic
#111807 #111807 #2D4012 #4F701F #70A02D

Accessibility & contrast

On white

11.33
#2D4012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2D4012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4012
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4012#FFFFFF#000000##FFFFFF
##2D40121.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B0C
Deuteranopia (green-blind)
#413A15
Tritanopia (blue-blind)
#2F3D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d4012;
/* rgb */ color: rgb(45, 64, 18);
/* oklch */ color: oklch(34.4% 0.074 128.8);
Tailwind
colors: {
  custom: {
    50: '#687552',
    500: '#2d4012',
    950: '#000000',
  },
}
SCSS
$custom: #2d4012;
$custom-light: #687552;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4012",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 18
  },
  "hsl": {
    "h": 84.783,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.34392,
    "c": 0.07355,
    "h": 128.8
  },
  "luminance": 0.04268
}

Semantic roles & 50–950 ramp

primary
#2D4012
secondary
#513579
accent
#48DF87
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2D4012

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

Preview Lab → · Contrast checker → · Palette generator →

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