#401717#401717

#401717 is a dark, moderate red. Relative luminance 0.018; OKLCH L 26.8% C 0.064 H 22.4°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#401717
RGBrgb(64, 23, 23)
HSLhsl(0, 47%, 17%)
HSVhsv(0, 64%, 25%)
CMYKcmyk(0%, 64.1%, 64.1%, 74.9%)
CIE-LABlab(14.20, 20.00, 9.97)
CIE-LCHlch(14.20, 22.35, 26.51°)
OKLaboklab(26.8% 0.0595 0.0245)
OKLCHoklch(26.8% 0.064 22.4)
XYZxyz(2.5756, 1.7650, 1.0155)
Luminance0.0176 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401717 #174040
analogous
#40172C #401717 #402C17
triadic
#401717 #174017 #171740
tetradic
#401717 #2C4017 #174040 #2C1740
square
#401717 #2C4017 #174040 #2C1740
split-complementary
#401717 #17402C #172C40
monochromatic
#170808 #170808 #401717 #6D2727 #9A3737

Accessibility & contrast

On white

15.52
#401717 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#401717 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401717
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401717#FFFFFF#000000##FFFFFF
##4017171.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#211F17
Deuteranopia (green-blind)
#2B2716
Tritanopia (blue-blind)
#471017
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #401717;
/* rgb */ color: rgb(64, 23, 23);
/* oklch */ color: oklch(26.8% 0.064 22.4);
Tailwind
colors: {
  custom: {
    50: '#785653',
    500: '#401717',
    950: '#000000',
  },
}
SCSS
$custom: #401717;
$custom-light: #785653;
$custom-dark: #000000;
JSON
{
  "hex": "#401717",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 23
  },
  "hsl": {
    "h": 0,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.26804,
    "c": 0.06431,
    "h": 22.4
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#401717
secondary
#3C7777
accent
#D7D751
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#090302
muted
#7B7878

Preview Lab

Preview with #401717

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

Preview Lab → · Contrast checker → · Palette generator →

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