#40171E#40171E

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

Color values

HEX#40171E
RGBrgb(64, 23, 30)
HSLhsl(350, 47%, 17%)
HSVhsv(350, 64%, 25%)
CMYKcmyk(0%, 64.1%, 53.1%, 74.9%)
CIE-LABlab(14.38, 20.76, 5.14)
CIE-LCHlch(14.38, 21.38, 13.91°)
OKLaboklab(27% 0.0628 0.0132)
OKLCHoklch(27% 0.064 11.9)
XYZxyz(2.6553, 1.7968, 1.4350)
Luminance0.0180 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40171E #174039
analogous
#401733 #40171E #402517
triadic
#40171E #1E4017 #171E40
tetradic
#40171E #334017 #174039 #251740
square
#40171E #334017 #174039 #251740
split-complementary
#40171E #174025 #173340
monochromatic
#17080B #17080B #40171E #6D2733 #9A3748

Accessibility & contrast

On white

15.45
#40171E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40171E
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40171E#FFFFFF#000000##FFFFFF
##40171E1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201F1E
Deuteranopia (green-blind)
#2A271D
Tritanopia (blue-blind)
#46121A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40171e;
/* rgb */ color: rgb(64, 23, 30);
/* oklch */ color: oklch(27.0% 0.064 11.9);
Tailwind
colors: {
  custom: {
    50: '#775659',
    500: '#40171e',
    950: '#000000',
  },
}
SCSS
$custom: #40171e;
$custom-light: #775659;
$custom-dark: #000000;
JSON
{
  "hex": "#40171e",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 30
  },
  "hsl": {
    "h": 349.756,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.26999,
    "c": 0.06422,
    "h": 11.9
  },
  "luminance": 0.01797
}

Semantic roles & 50–950 ramp

primary
#40171E
secondary
#3C776D
accent
#D7C051
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090303
muted
#7B7878

Preview Lab

Preview with #40171E

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

Preview Lab → · Contrast checker → · Palette generator →

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