#401718#401718

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

Color values

HEX#401718
RGBrgb(64, 23, 24)
HSLhsl(359, 47%, 17%)
HSVhsv(359, 64%, 25%)
CMYKcmyk(0%, 64.1%, 62.5%, 74.9%)
CIE-LABlab(14.23, 20.10, 9.28)
CIE-LCHlch(14.23, 22.14, 24.79°)
OKLaboklab(26.83% 0.06 0.023)
OKLCHoklch(26.83% 0.064 21)
XYZxyz(2.5858, 1.7690, 1.0693)
Luminance0.0177 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401718 #17403F
analogous
#40172D #401718 #402B17
triadic
#401718 #184017 #171840
tetradic
#401718 #2D4017 #17403F #2B1740
square
#401718 #2D4017 #17403F #2B1740
split-complementary
#401718 #17402B #172D40
monochromatic
#170808 #170808 #401718 #6D2729 #9A373A

Accessibility & contrast

On white

15.51
#401718 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401718
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401718#FFFFFF#000000##FFFFFF
##4017181.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#211F18
Deuteranopia (green-blind)
#2B2717
Tritanopia (blue-blind)
#461018
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #401718;
/* rgb */ color: rgb(64, 23, 24);
/* oklch */ color: oklch(26.8% 0.064 21.0);
Tailwind
colors: {
  custom: {
    50: '#785654',
    500: '#401718',
    950: '#000000',
  },
}
SCSS
$custom: #401718;
$custom-light: #785654;
$custom-dark: #000000;
JSON
{
  "hex": "#401718",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 24
  },
  "hsl": {
    "h": 358.537,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.26829,
    "c": 0.0642,
    "h": 21
  },
  "luminance": 0.01769
}

Semantic roles & 50–950 ramp

primary
#401718
secondary
#3C7775
accent
#D7D351
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#090302
muted
#7B7878

Preview Lab

Preview with #401718

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

Preview Lab → · Contrast checker → · Palette generator →

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