#401336#401336

#401336 is a dark, moderate pink. Relative luminance 0.018; OKLCH L 27.4% C 0.085 H 337.4°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#401336
RGBrgb(64, 19, 54)
HSLhsl(313, 54%, 16%)
HSVhsv(313, 70%, 25%)
CMYKcmyk(0%, 70.3%, 15.6%, 74.9%)
CIE-LABlab(14.53, 26.67, -12.05)
CIE-LCHlch(14.53, 29.26, 335.69°)
OKLaboklab(27.42% 0.0783 -0.0326)
OKLCHoklch(27.42% 0.085 337.4)
XYZxyz(3.0131, 1.8223, 3.6824)
Luminance0.0182 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401336 #13401D
analogous
#341340 #401336 #401320
triadic
#401336 #364013 #133640
tetradic
#401336 #403413 #13401D #132040
square
#401336 #403413 #13401D #132040
split-complementary
#401336 #204013 #134034
monochromatic
#180714 #180714 #401336 #6F215E #9E2F86

Accessibility & contrast

On white

15.39
#401336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#401336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401336
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401336#FFFFFF#000000##FFFFFF
##4013361.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142037
Deuteranopia (green-blind)
#222735
Tritanopia (blue-blind)
#441522
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #401336;
/* rgb */ color: rgb(64, 19, 54);
/* oklch */ color: oklch(27.4% 0.085 337.4);
Tailwind
colors: {
  custom: {
    50: '#77546d',
    500: '#401336',
    950: '#000000',
  },
}
SCSS
$custom: #401336;
$custom-light: #77546d;
$custom-dark: #000000;
JSON
{
  "hex": "#401336",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 54
  },
  "hsl": {
    "h": 313.333,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27423,
    "c": 0.08483,
    "h": 337.4
  },
  "luminance": 0.01822
}

Semantic roles & 50–950 ramp

primary
#401336
secondary
#367945
accent
#DE6B4A
background
#F7F5F6
surface
#EDE8EB
border
#C8C4C6
text
#090307
muted
#7B787A

Preview Lab

Preview with #401336

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

Preview Lab → · Contrast checker → · Palette generator →

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