#40340B#40340B

#40340B is a dark, muted yellow. Relative luminance 0.036; OKLCH L 32.9% C 0.059 H 92.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#40340B
RGBrgb(64, 52, 11)
HSLhsl(46, 71%, 15%)
HSVhsv(46, 83%, 25%)
CMYKcmyk(0%, 18.8%, 82.8%, 74.9%)
CIE-LABlab(22.20, 0.15, 26.45)
CIE-LCHlch(22.20, 26.45, 89.67°)
OKLaboklab(32.94% -0.0022 0.0588)
OKLCHoklch(32.94% 0.059 92.1)
XYZxyz(3.4029, 3.5703, 0.8264)
Luminance0.0357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40340B #0B1740
analogous
#401A0B #40340B #32400B
triadic
#40340B #0B4034 #340B40
tetradic
#40340B #0B401A #0B1740 #400B32
square
#40340B #0B401A #0B1740 #400B32
split-complementary
#40340B #0B3240 #1A0B40
monochromatic
#1A1504 #1A1504 #40340B #745E14 #A8891D

Accessibility & contrast

On white

12.25
#40340B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#40340B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40340B
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40340B#FFFFFF#000000##FFFFFF
##40340B1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40340b;
/* rgb */ color: rgb(64, 52, 11);
/* oklch */ color: oklch(32.9% 0.059 92.1);
Tailwind
colors: {
  custom: {
    50: '#776b4d',
    500: '#40340b',
    950: '#000000',
  },
}
SCSS
$custom: #40340b;
$custom-light: #776b4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40340b",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 11
  },
  "hsl": {
    "h": 46.415,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.32938,
    "c": 0.05887,
    "h": 92.1
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

primary
#40340B
secondary
#2A3D7D
accent
#63ED3A
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090601
muted
#7B7A77

Preview Lab

Preview with #40340B

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

Preview Lab → · Contrast checker → · Palette generator →

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