#40150A#40150A

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

Color values

HEX#40150A
RGBrgb(64, 21, 10)
HSLhsl(12, 73%, 15%)
HSVhsv(12, 84%, 25%)
CMYKcmyk(0%, 67.2%, 84.4%, 74.9%)
CIE-LABlab(13.52, 20.19, 16.49)
CIE-LCHlch(13.52, 26.07, 39.24°)
OKLaboklab(26.22% 0.0572 0.0407)
OKLCHoklch(26.22% 0.07 35.4)
XYZxyz(2.4376, 1.6486, 0.4769)
Luminance0.0165 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40150A #0A3540
analogous
#400A1A #40150A #40300A
triadic
#40150A #0A4015 #150A40
tetradic
#40150A #1A400A #0A3540 #300A40
square
#40150A #1A400A #0A3540 #300A40
split-complementary
#40150A #0A4030 #0A1A40
monochromatic
#1A0904 #1A0904 #40150A #752612 #AA381B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40150A#FFFFFF#000000##FFFFFF
##40150A1.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)
#211D09
Deuteranopia (green-blind)
#2B2609
Tritanopia (blue-blind)
#470B13
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40150a;
/* rgb */ color: rgb(64, 21, 10);
/* oklch */ color: oklch(26.2% 0.070 35.4);
Tailwind
colors: {
  custom: {
    50: '#79544b',
    500: '#40150a',
    950: '#000000',
  },
}
SCSS
$custom: #40150a;
$custom-light: #79544b;
$custom-dark: #000000;
JSON
{
  "hex": "#40150a",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 10
  },
  "hsl": {
    "h": 12.222,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.26216,
    "c": 0.0702,
    "h": 35.4
  },
  "luminance": 0.01648
}

Semantic roles & 50–950 ramp

primary
#40150A
secondary
#296C7D
accent
#CAF038
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #40150A

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

Preview Lab → · Contrast checker → · Palette generator →

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