#2D400C#2D400C

#2D400C is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.3% C 0.079 H 127.7°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#2D400C
RGBrgb(45, 64, 12)
HSLhsl(82, 68%, 15%)
HSVhsv(82, 81%, 25%)
CMYKcmyk(29.7%, 0%, 81.2%, 74.9%)
CIE-LABlab(24.49, -16.81, 27.76)
CIE-LCHlch(24.49, 32.45, 121.19°)
OKLaboklab(34.33% -0.0481 0.0623)
OKLCHoklch(34.33% 0.079 127.7)
XYZxyz(2.9819, 4.2512, 1.0112)
Luminance0.0425 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D400C #1F0C40
analogous
#40390C #2D400C #13400C
triadic
#2D400C #0C2D40 #400C2D
tetradic
#2D400C #0C4039 #1F0C40 #400C13
square
#2D400C #0C4039 #1F0C40 #400C13
split-complementary
#2D400C #0C1340 #390C40
monochromatic
#121A05 #121A05 #2D400C #517416 #75A71F

Accessibility & contrast

On white

11.35
#2D400C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D400C
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D400C#FFFFFF#000000##FFFFFF
##2D400C1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B04
Deuteranopia (green-blind)
#413A11
Tritanopia (blue-blind)
#2F3D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d400c;
/* rgb */ color: rgb(45, 64, 12);
/* oklch */ color: oklch(34.3% 0.079 127.7);
Tailwind
colors: {
  custom: {
    50: '#68754f',
    500: '#2d400c',
    950: '#000000',
  },
}
SCSS
$custom: #2d400c;
$custom-light: #68754f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d400c",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 12
  },
  "hsl": {
    "h": 81.923,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.34331,
    "c": 0.0787,
    "h": 127.7
  },
  "luminance": 0.04251
}

Semantic roles & 50–950 ramp

primary
#2D400C
secondary
#492C7C
accent
#3DEB7C
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2D400C

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

Preview Lab → · Contrast checker → · Palette generator →

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