#2D4312#2D4312

#2D4312 is a dark, moderate yellow-green. Relative luminance 0.046; OKLCH L 35.3% C 0.078 H 130.2°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#2D4312
RGBrgb(45, 67, 18)
HSLhsl(87, 58%, 17%)
HSVhsv(87, 73%, 26%)
CMYKcmyk(32.8%, 0%, 73.1%, 73.7%)
CIE-LABlab(25.61, -17.93, 26.09)
CIE-LCHlch(25.61, 31.66, 124.50°)
OKLaboklab(35.26% -0.0506 0.0598)
OKLCHoklch(35.26% 0.078 130.2)
XYZxyz(3.1985, 4.6158, 1.2946)
Luminance0.0462 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4312 #281243
analogous
#434112 #2D4312 #154312
triadic
#2D4312 #122D43 #43122D
tetradic
#2D4312 #124341 #281243 #431215
square
#2D4312 #124341 #281243 #431215
split-complementary
#2D4312 #121543 #411243
monochromatic
#101806 #101806 #2D4312 #4D731F #6EA32C

Accessibility & contrast

On white

10.92
#2D4312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2D4312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4312
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4312#FFFFFF#000000##FFFFFF
##2D43121.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463E0C
Deuteranopia (green-blind)
#433C16
Tritanopia (blue-blind)
#2E4039
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d4312;
/* rgb */ color: rgb(45, 67, 18);
/* oklch */ color: oklch(35.3% 0.078 130.2);
Tailwind
colors: {
  custom: {
    50: '#687752',
    500: '#2d4312',
    950: '#000000',
  },
}
SCSS
$custom: #2d4312;
$custom-light: #687752;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4312",
  "rgb": {
    "r": 45,
    "g": 67,
    "b": 18
  },
  "hsl": {
    "h": 86.939,
    "s": 57.647,
    "l": 16.667
  },
  "oklch": {
    "l": 0.35262,
    "c": 0.07831,
    "h": 130.2
  },
  "luminance": 0.04616
}

Semantic roles & 50–950 ramp

primary
#2D4312
secondary
#55357C
accent
#47E18C
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2D4312

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

Preview Lab → · Contrast checker → · Palette generator →

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