#401017#401017

#401017 is a dark, moderate red. Relative luminance 0.015; OKLCH L 25.7% C 0.074 H 15.6°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#401017
RGBrgb(64, 16, 23)
HSLhsl(351, 60%, 16%)
HSVhsv(351, 75%, 25%)
CMYKcmyk(0%, 75%, 64.1%, 74.9%)
CIE-LABlab(12.75, 23.86, 8.04)
CIE-LCHlch(12.75, 25.18, 18.62°)
OKLaboklab(25.72% 0.0717 0.02)
OKLCHoklch(25.72% 0.074 15.6)
XYZxyz(2.4545, 1.5228, 0.9751)
Luminance0.0152 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401017 #104039
analogous
#40102F #401017 #402110
triadic
#401017 #174010 #101740
tetradic
#401017 #2F4010 #104039 #211040
square
#401017 #2F4010 #104039 #211040
split-complementary
#401017 #104021 #102F40
monochromatic
#180609 #180609 #401017 #711C29 #A2283A

Accessibility & contrast

On white

16.10
#401017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#401017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401017
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401017#FFFFFF#000000##FFFFFF
##4010171.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C1B17
Deuteranopia (green-blind)
#282516
Tritanopia (blue-blind)
#470713
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #401017;
/* rgb */ color: rgb(64, 16, 23);
/* oklch */ color: oklch(25.7% 0.074 15.6);
Tailwind
colors: {
  custom: {
    50: '#795153',
    500: '#401017',
    950: '#000000',
  },
}
SCSS
$custom: #401017;
$custom-light: #795153;
$custom-dark: #000000;
JSON
{
  "hex": "#401017",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 23
  },
  "hsl": {
    "h": 351.25,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25715,
    "c": 0.07438,
    "h": 15.6
  },
  "luminance": 0.01522
}

Semantic roles & 50–950 ramp

primary
#401017
secondary
#327A6F
accent
#E3CC45
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#090202
muted
#7B7878

Preview Lab

Preview with #401017

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

Preview Lab → · Contrast checker → · Palette generator →

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