#401215#401215

#401215 is a dark, moderate red. Relative luminance 0.016; OKLCH L 26.0% C 0.072 H 19.8°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#401215
RGBrgb(64, 18, 21)
HSLhsl(356, 56%, 16%)
HSVhsv(356, 72%, 25%)
CMYKcmyk(0%, 71.9%, 67.2%, 74.9%)
CIE-LABlab(13.09, 22.64, 9.93)
CIE-LCHlch(13.09, 24.72, 23.68°)
OKLaboklab(25.95% 0.0674 0.0243)
OKLCHoklch(25.95% 0.072 19.8)
XYZxyz(2.4662, 1.5771, 0.8839)
Luminance0.0158 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401215 #12403D
analogous
#40122C #401215 #402612
triadic
#401215 #154012 #121540
tetradic
#401215 #2C4012 #12403D #261240
square
#401215 #2C4012 #12403D #261240
split-complementary
#401215 #124026 #122C40
monochromatic
#180708 #180708 #401215 #701F25 #A02D34

Accessibility & contrast

On white

15.96
#401215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#401215 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401215
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401215#FFFFFF#000000##FFFFFF
##4012151.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E1C15
Deuteranopia (green-blind)
#292514
Tritanopia (blue-blind)
#470913
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #401215;
/* rgb */ color: rgb(64, 18, 21);
/* oklch */ color: oklch(26.0% 0.072 19.8);
Tailwind
colors: {
  custom: {
    50: '#795252',
    500: '#401215',
    950: '#000000',
  },
}
SCSS
$custom: #401215;
$custom-light: #795252;
$custom-dark: #000000;
JSON
{
  "hex": "#401215",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 21
  },
  "hsl": {
    "h": 356.087,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25953,
    "c": 0.07163,
    "h": 19.8
  },
  "luminance": 0.01577
}

Semantic roles & 50–950 ramp

primary
#401215
secondary
#357975
accent
#DFD648
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#090202
muted
#7B7878

Preview Lab

Preview with #401215

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

Preview Lab → · Contrast checker → · Palette generator →

#401215 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva