#40171A#40171A

#40171A is a dark, moderate red. Relative luminance 0.018; OKLCH L 26.9% C 0.064 H 18.0°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#40171A
RGBrgb(64, 23, 26)
HSLhsl(356, 47%, 17%)
HSVhsv(356, 64%, 25%)
CMYKcmyk(0%, 64.1%, 59.4%, 74.9%)
CIE-LABlab(14.27, 20.30, 7.90)
CIE-LCHlch(14.27, 21.79, 21.27°)
OKLaboklab(26.88% 0.0609 0.0198)
OKLCHoklch(26.88% 0.064 18)
XYZxyz(2.6074, 1.7777, 1.1829)
Luminance0.0178 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40171A #17403D
analogous
#40172F #40171A #402917
triadic
#40171A #1A4017 #171A40
tetradic
#40171A #2F4017 #17403D #291740
square
#40171A #2F4017 #17403D #291740
split-complementary
#40171A #174029 #172F40
monochromatic
#170809 #170809 #40171A #6D272C #9A373F

Accessibility & contrast

On white

15.49
#40171A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#40171A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40171A
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40171A#FFFFFF#000000##FFFFFF
##40171A1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201F1A
Deuteranopia (green-blind)
#2B2719
Tritanopia (blue-blind)
#461118
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40171a;
/* rgb */ color: rgb(64, 23, 26);
/* oklch */ color: oklch(26.9% 0.064 18.0);
Tailwind
colors: {
  custom: {
    50: '#785656',
    500: '#40171a',
    950: '#000000',
  },
}
SCSS
$custom: #40171a;
$custom-light: #785656;
$custom-dark: #000000;
JSON
{
  "hex": "#40171a",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 26
  },
  "hsl": {
    "h": 355.61,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.26882,
    "c": 0.06405,
    "h": 18
  },
  "luminance": 0.01777
}

Semantic roles & 50–950 ramp

primary
#40171A
secondary
#3C7773
accent
#D7CD51
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090303
muted
#7B7878

Preview Lab

Preview with #40171A

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

Preview Lab → · Contrast checker → · Palette generator →

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