#40140B#40140B

#40140B is a dark, moderate red. Relative luminance 0.016; OKLCH L 26.1% C 0.071 H 33.3°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#40140B
RGBrgb(64, 20, 11)
HSLhsl(10, 71%, 15%)
HSVhsv(10, 83%, 25%)
CMYKcmyk(0%, 68.8%, 82.8%, 74.9%)
CIE-LABlab(13.32, 20.82, 15.81)
CIE-LCHlch(13.32, 26.14, 37.21°)
OKLaboklab(26.07% 0.0594 0.039)
OKLCHoklch(26.07% 0.071 33.3)
XYZxyz(2.4252, 1.6148, 0.5005)
Luminance0.0161 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40140B #0B3740
analogous
#400B1C #40140B #402F0B
triadic
#40140B #0B4014 #140B40
tetradic
#40140B #1C400B #0B3740 #2F0B40
square
#40140B #1C400B #0B3740 #2F0B40
split-complementary
#40140B #0B402F #0B1C40
monochromatic
#1A0804 #1A0804 #40140B #742414 #A8351D

Accessibility & contrast

On white

15.88
#40140B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#40140B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40140B
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40140B#FFFFFF#000000##FFFFFF
##40140B1.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201C0A
Deuteranopia (green-blind)
#2B260A
Tritanopia (blue-blind)
#470A12
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40140b;
/* rgb */ color: rgb(64, 20, 11);
/* oklch */ color: oklch(26.1% 0.071 33.3);
Tailwind
colors: {
  custom: {
    50: '#79534b',
    500: '#40140b',
    950: '#000000',
  },
}
SCSS
$custom: #40140b;
$custom-light: #79534b;
$custom-dark: #000000;
JSON
{
  "hex": "#40140b",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 11
  },
  "hsl": {
    "h": 10.189,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.26067,
    "c": 0.07106,
    "h": 33.3
  },
  "luminance": 0.01614
}

Semantic roles & 50–950 ramp

primary
#40140B
secondary
#2A6F7D
accent
#CFED3A
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #40140B

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

Preview Lab → · Contrast checker → · Palette generator →

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