#40340E#40340E

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

Color values

HEX#40340E
RGBrgb(64, 52, 14)
HSLhsl(46, 64%, 15%)
HSVhsv(46, 78%, 25%)
CMYKcmyk(0%, 18.8%, 78.1%, 74.9%)
CIE-LABlab(22.22, 0.34, 25.08)
CIE-LCHlch(22.22, 25.08, 89.22°)
OKLaboklab(32.97% -0.0012 0.0564)
OKLCHoklch(32.97% 0.056 91.2)
XYZxyz(3.4218, 3.5779, 0.9257)
Luminance0.0358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40340E #0E1A40
analogous
#401B0E #40340E #33400E
triadic
#40340E #0E4034 #340E40
tetradic
#40340E #0E401B #0E1A40 #400E33
square
#40340E #0E401B #0E1A40 #400E33
split-complementary
#40340E #0E3340 #1B0E40
monochromatic
#191405 #191405 #40340E #725D19 #A48624

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40340E#FFFFFF#000000##FFFFFF
##40340E1.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)
#3B3309
Deuteranopia (green-blind)
#3D3710
Tritanopia (blue-blind)
#462F2C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #40340e;
/* rgb */ color: rgb(64, 52, 14);
/* oklch */ color: oklch(33.0% 0.056 91.2);
Tailwind
colors: {
  custom: {
    50: '#776b4f',
    500: '#40340e',
    950: '#000000',
  },
}
SCSS
$custom: #40340e;
$custom-light: #776b4f;
$custom-dark: #000000;
JSON
{
  "hex": "#40340e",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 14
  },
  "hsl": {
    "h": 45.6,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.32968,
    "c": 0.05639,
    "h": 91.2
  },
  "luminance": 0.03578
}

Semantic roles & 50–950 ramp

primary
#40340E
secondary
#2F417B
accent
#69E741
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090602
muted
#7B7A78

Preview Lab

Preview with #40340E

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

Preview Lab → · Contrast checker → · Palette generator →

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