#40140C#40140C

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

Color values

HEX#40140C
RGBrgb(64, 20, 12)
HSLhsl(9, 68%, 15%)
HSVhsv(9, 81%, 25%)
CMYKcmyk(0%, 68.8%, 81.2%, 74.9%)
CIE-LABlab(13.33, 20.88, 15.38)
CIE-LCHlch(13.33, 25.93, 36.38°)
OKLaboklab(26.08% 0.0598 0.0379)
OKLCHoklch(26.08% 0.071 32.3)
XYZxyz(2.4311, 1.6172, 0.5319)
Luminance0.0162 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40140C #0C3840
analogous
#400C1E #40140C #402E0C
triadic
#40140C #0C4014 #140C40
tetradic
#40140C #1E400C #0C3840 #2E0C40
square
#40140C #1E400C #0C3840 #2E0C40
split-complementary
#40140C #0C402E #0C1E40
monochromatic
#1A0805 #1A0805 #40140C #742416 #A7341F

Accessibility & contrast

On white

15.87
#40140C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40140C
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40140C#FFFFFF#000000##FFFFFF
##40140C1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40140c;
/* rgb */ color: rgb(64, 20, 12);
/* oklch */ color: oklch(26.1% 0.071 32.3);
Tailwind
colors: {
  custom: {
    50: '#79534c',
    500: '#40140c',
    950: '#000000',
  },
}
SCSS
$custom: #40140c;
$custom-light: #79534c;
$custom-dark: #000000;
JSON
{
  "hex": "#40140c",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 12
  },
  "hsl": {
    "h": 9.231,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26082,
    "c": 0.07078,
    "h": 32.3
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#40140C
secondary
#2C707C
accent
#D0EB3D
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #40140C

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

Preview Lab → · Contrast checker → · Palette generator →

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