#40140D#40140D

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

Color values

HEX#40140D
RGBrgb(64, 20, 13)
HSLhsl(8, 66%, 15%)
HSVhsv(8, 80%, 25%)
CMYKcmyk(0%, 68.8%, 79.7%, 74.9%)
CIE-LABlab(13.35, 20.94, 14.94)
CIE-LCHlch(13.35, 25.72, 35.50°)
OKLaboklab(26.1% 0.0602 0.0367)
OKLCHoklch(26.1% 0.071 31.3)
XYZxyz(2.4374, 1.6197, 0.5650)
Luminance0.0162 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40140D #0D3940
analogous
#400D20 #40140D #402D0D
triadic
#40140D #0D4014 #140D40
tetradic
#40140D #20400D #0D3940 #2D0D40
square
#40140D #20400D #0D3940 #2D0D40
split-complementary
#40140D #0D402D #0D2040
monochromatic
#190805 #190805 #40140D #732417 #A63422

Accessibility & contrast

On white

15.86
#40140D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40140D
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40140D#FFFFFF#000000##FFFFFF
##40140D1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201C0C
Deuteranopia (green-blind)
#2B260C
Tritanopia (blue-blind)
#470A13
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40140d;
/* rgb */ color: rgb(64, 20, 13);
/* oklch */ color: oklch(26.1% 0.070 31.3);
Tailwind
colors: {
  custom: {
    50: '#79534c',
    500: '#40140d',
    950: '#000000',
  },
}
SCSS
$custom: #40140d;
$custom-light: #79534c;
$custom-dark: #000000;
JSON
{
  "hex": "#40140d",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 13
  },
  "hsl": {
    "h": 8.235,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26099,
    "c": 0.0705,
    "h": 31.3
  },
  "luminance": 0.01619
}

Semantic roles & 50–950 ramp

primary
#40140D
secondary
#2D717C
accent
#D2E93F
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #40140D

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

Preview Lab → · Contrast checker → · Palette generator →

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