#40340D#40340D

#40340D is a dark, muted yellow. Relative luminance 0.036; OKLCH L 33.0% C 0.057 H 91.6°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#40340D
RGBrgb(64, 52, 13)
HSLhsl(46, 66%, 15%)
HSVhsv(46, 80%, 25%)
CMYKcmyk(0%, 18.8%, 79.7%, 74.9%)
CIE-LABlab(22.21, 0.28, 25.56)
CIE-LCHlch(22.21, 25.56, 89.38°)
OKLaboklab(32.96% -0.0015 0.0572)
OKLCHoklch(32.96% 0.057 91.6)
XYZxyz(3.4152, 3.5752, 0.8909)
Luminance0.0357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40340D #0D1940
analogous
#401A0D #40340D #33400D
triadic
#40340D #0D4034 #340D40
tetradic
#40340D #0D401A #0D1940 #400D33
square
#40340D #0D401A #0D1940 #400D33
split-complementary
#40340D #0D3340 #1A0D40
monochromatic
#191505 #191505 #40340D #735D17 #A68722

Accessibility & contrast

On white

12.24
#40340D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#40340D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40340D
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40340D#FFFFFF#000000##FFFFFF
##40340D1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B3308
Deuteranopia (green-blind)
#3E370F
Tritanopia (blue-blind)
#462F2C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #40340d;
/* rgb */ color: rgb(64, 52, 13);
/* oklch */ color: oklch(33.0% 0.057 91.6);
Tailwind
colors: {
  custom: {
    50: '#776b4e',
    500: '#40340d',
    950: '#000000',
  },
}
SCSS
$custom: #40340d;
$custom-light: #776b4e;
$custom-dark: #000000;
JSON
{
  "hex": "#40340d",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 13
  },
  "hsl": {
    "h": 45.882,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.32957,
    "c": 0.05725,
    "h": 91.6
  },
  "luminance": 0.03575
}

Semantic roles & 50–950 ramp

primary
#40340D
secondary
#2D407C
accent
#67E93F
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090602
muted
#7B7A78

Preview Lab

Preview with #40340D

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

Preview Lab → · Contrast checker → · Palette generator →

#40340D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva