#40150D#40150D

#40150D is a dark, moderate red. Relative luminance 0.017; OKLCH L 26.3% C 0.069 H 32.5°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#40150D
RGBrgb(64, 21, 13)
HSLhsl(9, 66%, 15%)
HSVhsv(9, 80%, 25%)
CMYKcmyk(0%, 67.2%, 79.7%, 74.9%)
CIE-LABlab(13.57, 20.37, 15.22)
CIE-LCHlch(13.57, 25.43, 36.77°)
OKLaboklab(26.26% 0.0585 0.0372)
OKLCHoklch(26.26% 0.069 32.5)
XYZxyz(2.4554, 1.6557, 0.5710)
Luminance0.0165 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40150D #0D3840
analogous
#400D1E #40150D #402F0D
triadic
#40150D #0D4015 #150D40
tetradic
#40150D #1E400D #0D3840 #2F0D40
square
#40150D #1E400D #0D3840 #2F0D40
split-complementary
#40150D #0D402F #0D1E40
monochromatic
#190805 #190805 #40150D #732617 #A63622

Accessibility & contrast

On white

15.78
#40150D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#40150D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40150D
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40150D#FFFFFF#000000##FFFFFF
##40150D1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#211D0C
Deuteranopia (green-blind)
#2B260C
Tritanopia (blue-blind)
#470C13
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40150d;
/* rgb */ color: rgb(64, 21, 13);
/* oklch */ color: oklch(26.3% 0.069 32.5);
Tailwind
colors: {
  custom: {
    50: '#79544c',
    500: '#40150d',
    950: '#000000',
  },
}
SCSS
$custom: #40150d;
$custom-light: #79544c;
$custom-dark: #000000;
JSON
{
  "hex": "#40150d",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 13
  },
  "hsl": {
    "h": 9.412,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26262,
    "c": 0.06928,
    "h": 32.5
  },
  "luminance": 0.01655
}

Semantic roles & 50–950 ramp

primary
#40150D
secondary
#2D6F7C
accent
#CEE93F
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #40150D

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

Preview Lab → · Contrast checker → · Palette generator →

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