#40140F#40140F

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

Color values

HEX#40140F
RGBrgb(64, 20, 15)
HSLhsl(6, 62%, 15%)
HSVhsv(6, 77%, 25%)
CMYKcmyk(0%, 68.8%, 76.6%, 74.9%)
CIE-LABlab(13.38, 21.07, 13.97)
CIE-LCHlch(13.38, 25.28, 33.54°)
OKLaboklab(26.13% 0.0611 0.0341)
OKLCHoklch(26.13% 0.07 29.2)
XYZxyz(2.4510, 1.6251, 0.6365)
Luminance0.0163 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40140F #0F3B40
analogous
#400F22 #40140F #402C0F
triadic
#40140F #0F4014 #140F40
tetradic
#40140F #22400F #0F3B40 #2C0F40
square
#40140F #22400F #0F3B40 #2C0F40
split-complementary
#40140F #0F402C #0F2240
monochromatic
#190806 #190806 #40140F #72231B #A33326

Accessibility & contrast

On white

15.85
#40140F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#40140F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40140F
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40140F#FFFFFF#000000##FFFFFF
##40140F1.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201C0E
Deuteranopia (green-blind)
#2B260E
Tritanopia (blue-blind)
#470B13
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40140f;
/* rgb */ color: rgb(64, 20, 15);
/* oklch */ color: oklch(26.1% 0.070 29.2);
Tailwind
colors: {
  custom: {
    50: '#79544e',
    500: '#40140f',
    950: '#000000',
  },
}
SCSS
$custom: #40140f;
$custom-light: #79544e;
$custom-dark: #000000;
JSON
{
  "hex": "#40140f",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 15
  },
  "hsl": {
    "h": 6.122,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26134,
    "c": 0.06998,
    "h": 29.2
  },
  "luminance": 0.01625
}

Semantic roles & 50–950 ramp

primary
#40140F
secondary
#30737A
accent
#D5E543
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #40140F

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

Preview Lab → · Contrast checker → · Palette generator →

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