#40150C#40150C

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

Color values

HEX#40150C
RGBrgb(64, 21, 12)
HSLhsl(10, 68%, 15%)
HSVhsv(10, 81%, 25%)
CMYKcmyk(0%, 67.2%, 81.2%, 74.9%)
CIE-LABlab(13.55, 20.31, 15.67)
CIE-LCHlch(13.55, 25.65, 37.65°)
OKLaboklab(26.25% 0.058 0.0384)
OKLCHoklch(26.25% 0.07 33.5)
XYZxyz(2.4491, 1.6532, 0.5379)
Luminance0.0165 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40150C #0C3740
analogous
#400C1D #40150C #402F0C
triadic
#40150C #0C4015 #150C40
tetradic
#40150C #1D400C #0C3740 #2F0C40
square
#40150C #1D400C #0C3740 #2F0C40
split-complementary
#40150C #0C402F #0C1D40
monochromatic
#1A0805 #1A0805 #40150C #742616 #A7371F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40150C#FFFFFF#000000##FFFFFF
##40150C1.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)
#211D0B
Deuteranopia (green-blind)
#2B260B
Tritanopia (blue-blind)
#470B13
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40150c;
/* rgb */ color: rgb(64, 21, 12);
/* oklch */ color: oklch(26.2% 0.070 33.5);
Tailwind
colors: {
  custom: {
    50: '#79544c',
    500: '#40150c',
    950: '#000000',
  },
}
SCSS
$custom: #40150c;
$custom-light: #79544c;
$custom-dark: #000000;
JSON
{
  "hex": "#40150c",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 12
  },
  "hsl": {
    "h": 10.385,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26246,
    "c": 0.06958,
    "h": 33.5
  },
  "luminance": 0.01653
}

Semantic roles & 50–950 ramp

primary
#40150C
secondary
#2C6E7C
accent
#CDEB3D
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #40150C

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

Preview Lab → · Contrast checker → · Palette generator →

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