#401731#401731

#401731 is a dark, moderate pink. Relative luminance 0.019; OKLCH L 27.8% C 0.073 H 344.0°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#401731
RGBrgb(64, 23, 49)
HSLhsl(322, 47%, 17%)
HSVhsv(322, 64%, 25%)
CMYKcmyk(0%, 64.1%, 23.4%, 74.9%)
CIE-LABlab(15.09, 23.58, -7.60)
CIE-LCHlch(15.09, 24.78, 342.13°)
OKLaboklab(27.76% 0.0705 -0.0202)
OKLCHoklch(27.76% 0.073 344)
XYZxyz(2.9752, 1.9248, 3.1200)
Luminance0.0192 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401731 #174026
analogous
#3B1740 #401731 #40171D
triadic
#401731 #314017 #173140
tetradic
#401731 #403B17 #174026 #171D40
square
#401731 #403B17 #174026 #171D40
split-complementary
#401731 #1D4017 #17403B
monochromatic
#170811 #170811 #401731 #6D2753 #9A3776

Accessibility & contrast

On white

15.16
#401731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#401731 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401731
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401731#FFFFFF#000000##FFFFFF
##4017311.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2232
Deuteranopia (green-blind)
#262830
Tritanopia (blue-blind)
#441721
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #401731;
/* rgb */ color: rgb(64, 23, 49);
/* oklch */ color: oklch(27.8% 0.073 344.0);
Tailwind
colors: {
  custom: {
    50: '#765669',
    500: '#401731',
    950: '#000000',
  },
}
SCSS
$custom: #401731;
$custom-light: #765669;
$custom-dark: #000000;
JSON
{
  "hex": "#401731",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 49
  },
  "hsl": {
    "h": 321.951,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.27757,
    "c": 0.07332,
    "h": 344
  },
  "luminance": 0.01925
}

Semantic roles & 50–950 ramp

primary
#401731
secondary
#3C7751
accent
#D78251
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#090306
muted
#7B787A

Preview Lab

Preview with #401731

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

Preview Lab → · Contrast checker → · Palette generator →

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