#40150B#40150B

#40150B is a dark, moderate red. Relative luminance 0.017; OKLCH L 26.2% C 0.070 H 34.5°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#40150B
RGBrgb(64, 21, 11)
HSLhsl(11, 71%, 15%)
HSVhsv(11, 83%, 25%)
CMYKcmyk(0%, 67.2%, 82.8%, 74.9%)
CIE-LABlab(13.54, 20.25, 16.09)
CIE-LCHlch(13.54, 25.87, 38.47°)
OKLaboklab(26.23% 0.0576 0.0396)
OKLCHoklch(26.23% 0.07 34.5)
XYZxyz(2.4432, 1.6508, 0.5065)
Luminance0.0165 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40150B #0B3640
analogous
#400B1B #40150B #40300B
triadic
#40150B #0B4015 #150B40
tetradic
#40150B #1B400B #0B3640 #300B40
square
#40150B #1B400B #0B3640 #300B40
split-complementary
#40150B #0B4030 #0B1B40
monochromatic
#1A0904 #1A0904 #40150B #742614 #A8371D

Accessibility & contrast

On white

15.79
#40150B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40150B
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40150B#FFFFFF#000000##FFFFFF
##40150B1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#211D0A
Deuteranopia (green-blind)
#2B260A
Tritanopia (blue-blind)
#470B13
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40150b;
/* rgb */ color: rgb(64, 21, 11);
/* oklch */ color: oklch(26.2% 0.070 34.5);
Tailwind
colors: {
  custom: {
    50: '#79544b',
    500: '#40150b',
    950: '#000000',
  },
}
SCSS
$custom: #40150b;
$custom-light: #79544b;
$custom-dark: #000000;
JSON
{
  "hex": "#40150b",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 11
  },
  "hsl": {
    "h": 11.321,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2623,
    "c": 0.06989,
    "h": 34.5
  },
  "luminance": 0.0165
}

Semantic roles & 50–950 ramp

primary
#40150B
secondary
#2A6D7D
accent
#CCED3A
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #40150B

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

Preview Lab → · Contrast checker → · Palette generator →

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