#2D3A12#2D3A12

#2D3A12 is a dark, moderate yellow-green. Relative luminance 0.036; OKLCH L 32.7% C 0.064 H 125.0°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2D3A12
RGBrgb(45, 58, 18)
HSLhsl(80, 53%, 15%)
HSVhsv(80, 69%, 23%)
CMYKcmyk(22.4%, 0%, 69%, 77.3%)
CIE-LABlab(22.40, -12.87, 22.58)
CIE-LCHlch(22.40, 25.99, 119.68°)
OKLaboklab(32.66% -0.0366 0.0523)
OKLCHoklch(32.66% 0.064 125)
XYZxyz(2.7044, 3.6276, 1.1299)
Luminance0.0363 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3A12 #1F123A
analogous
#3A3312 #2D3A12 #193A12
triadic
#2D3A12 #122D3A #3A122D
tetradic
#2D3A12 #123A33 #1F123A #3A1219
square
#2D3A12 #123A33 #1F123A #3A1219
split-complementary
#2D3A12 #12193A #33123A
monochromatic
#121707 #121707 #2D3A12 #516920 #75972F

Accessibility & contrast

On white

12.17
#2D3A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D3A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3A12
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3A12#FFFFFF#000000##FFFFFF
##2D3A121.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D360E
Deuteranopia (green-blind)
#3C3515
Tritanopia (blue-blind)
#2F3731
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d3a12;
/* rgb */ color: rgb(45, 58, 18);
/* oklch */ color: oklch(32.7% 0.064 125.0);
Tailwind
colors: {
  custom: {
    50: '#677051',
    500: '#2d3a12',
    950: '#000000',
  },
}
SCSS
$custom: #2d3a12;
$custom-light: #677051;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3a12",
  "rgb": {
    "r": 45,
    "g": 58,
    "b": 18
  },
  "hsl": {
    "h": 79.5,
    "s": 52.632,
    "l": 14.902
  },
  "oklch": {
    "l": 0.32662,
    "c": 0.06388,
    "h": 125
  },
  "luminance": 0.03628
}

Semantic roles & 50–950 ramp

primary
#2D3A12
secondary
#493573
accent
#4CDC7B
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060702
muted
#7A7A78

Preview Lab

Preview with #2D3A12

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

Preview Lab → · Contrast checker → · Palette generator →

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