#401031#401031

#401031 is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.8% C 0.086 H 342.4°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#401031
RGBrgb(64, 16, 49)
HSLhsl(319, 60%, 16%)
HSVhsv(319, 75%, 25%)
CMYKcmyk(0%, 75%, 23.4%, 74.9%)
CIE-LABlab(13.72, 27.29, -9.69)
CIE-LCHlch(13.72, 28.95, 340.46°)
OKLaboklab(26.75% 0.0817 -0.0259)
OKLCHoklch(26.75% 0.086 342.4)
XYZxyz(2.8541, 1.6826, 3.0796)
Luminance0.0168 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401031 #10401F
analogous
#371040 #401031 #401019
triadic
#401031 #314010 #103140
tetradic
#401031 #403710 #10401F #101940
square
#401031 #403710 #10401F #101940
split-complementary
#401031 #194010 #104037
monochromatic
#180613 #180613 #401031 #711C56 #A2287C

Accessibility & contrast

On white

15.71
#401031 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#401031 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401031
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401031#FFFFFF#000000##FFFFFF
##4010311.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141E32
Deuteranopia (green-blind)
#222630
Tritanopia (blue-blind)
#44101E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #401031;
/* rgb */ color: rgb(64, 16, 49);
/* oklch */ color: oklch(26.8% 0.086 342.4);
Tailwind
colors: {
  custom: {
    50: '#775269',
    500: '#401031',
    950: '#000000',
  },
}
SCSS
$custom: #401031;
$custom-light: #775269;
$custom-dark: #000000;
JSON
{
  "hex": "#401031",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 49
  },
  "hsl": {
    "h": 318.75,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26753,
    "c": 0.08572,
    "h": 342.4
  },
  "luminance": 0.01682
}

Semantic roles & 50–950 ramp

primary
#401031
secondary
#327A48
accent
#E37645
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #401031

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

Preview Lab → · Contrast checker → · Palette generator →

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