#40340F#40340F

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

Color values

HEX#40340F
RGBrgb(64, 52, 15)
HSLhsl(45, 62%, 15%)
HSVhsv(45, 77%, 25%)
CMYKcmyk(0%, 18.8%, 76.6%, 74.9%)
CIE-LABlab(22.23, 0.41, 24.57)
CIE-LCHlch(22.23, 24.57, 89.05°)
OKLaboklab(32.98% -0.0009 0.0555)
OKLCHoklch(32.98% 0.056 90.9)
XYZxyz(3.4287, 3.5807, 0.9624)
Luminance0.0358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40340F #0F1B40
analogous
#401B0F #40340F #33400F
triadic
#40340F #0F4034 #340F40
tetradic
#40340F #0F401B #0F1B40 #400F33
square
#40340F #0F401B #0F1B40 #400F33
split-complementary
#40340F #0F3340 #1B0F40
monochromatic
#191406 #191406 #40340F #725C1B #A38526

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40340F#FFFFFF#000000##FFFFFF
##40340F1.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)
#3A330A
Deuteranopia (green-blind)
#3D3711
Tritanopia (blue-blind)
#462F2C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #40340f;
/* rgb */ color: rgb(64, 52, 15);
/* oklch */ color: oklch(33.0% 0.056 90.9);
Tailwind
colors: {
  custom: {
    50: '#776b4f',
    500: '#40340f',
    950: '#000000',
  },
}
SCSS
$custom: #40340f;
$custom-light: #776b4f;
$custom-dark: #000000;
JSON
{
  "hex": "#40340f",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 15
  },
  "hsl": {
    "h": 45.306,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.32979,
    "c": 0.05551,
    "h": 90.9
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#40340F
secondary
#30427A
accent
#6AE543
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090602
muted
#7B7A78

Preview Lab

Preview with #40340F

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

Preview Lab → · Contrast checker → · Palette generator →

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