#401B17#401B17

#401B17 is a dark, muted red. Relative luminance 0.019; OKLCH L 27.5% C 0.059 H 27.8°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#401B17
RGBrgb(64, 27, 23)
HSLhsl(6, 47%, 17%)
HSVhsv(6, 64%, 25%)
CMYKcmyk(0%, 57.8%, 64.1%, 74.9%)
CIE-LABlab(15.15, 17.57, 11.21)
CIE-LCHlch(15.15, 20.84, 32.55°)
OKLaboklab(27.52% 0.0519 0.0274)
OKLCHoklch(27.52% 0.059 27.8)
XYZxyz(2.6611, 1.9360, 1.0440)
Luminance0.0194 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B17 #173C40
analogous
#401728 #401B17 #403017
triadic
#401B17 #17401B #1B1740
tetradic
#401B17 #284017 #173C40 #301740
square
#401B17 #284017 #173C40 #301740
split-complementary
#401B17 #174030 #172840
monochromatic
#170908 #170908 #401B17 #6D2E27 #9A4137

Accessibility & contrast

On white

15.14
#401B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#401B17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B17
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B17#FFFFFF#000000##FFFFFF
##401B171.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242116
Deuteranopia (green-blind)
#2D2916
Tritanopia (blue-blind)
#46151A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #401b17;
/* rgb */ color: rgb(64, 27, 23);
/* oklch */ color: oklch(27.5% 0.059 27.8);
Tailwind
colors: {
  custom: {
    50: '#785853',
    500: '#401b17',
    950: '#000000',
  },
}
SCSS
$custom: #401b17;
$custom-light: #785853;
$custom-dark: #000000;
JSON
{
  "hex": "#401b17",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 23
  },
  "hsl": {
    "h": 5.854,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.27521,
    "c": 0.05865,
    "h": 27.8
  },
  "luminance": 0.01936
}

Semantic roles & 50–950 ramp

primary
#401B17
secondary
#3C7177
accent
#CAD751
background
#F7F5F4
surface
#EDE9E7
border
#C8C5C3
text
#090302
muted
#7B7878

Preview Lab

Preview with #401B17

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

Preview Lab → · Contrast checker → · Palette generator →

#401B17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva