#401337#401337

#401337 is a dark, moderate pink. Relative luminance 0.018; OKLCH L 27.5% C 0.086 H 336.3°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#401337
RGBrgb(64, 19, 55)
HSLhsl(312, 54%, 16%)
HSVhsv(312, 70%, 25%)
CMYKcmyk(0%, 70.3%, 14.1%, 74.9%)
CIE-LABlab(14.58, 26.85, -12.68)
CIE-LCHlch(14.58, 29.70, 334.73°)
OKLaboklab(27.48% 0.0785 -0.0344)
OKLCHoklch(27.48% 0.086 336.3)
XYZxyz(3.0368, 1.8318, 3.8073)
Luminance0.0183 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401337 #13401C
analogous
#331340 #401337 #401321
triadic
#401337 #374013 #133740
tetradic
#401337 #403313 #13401C #132140
square
#401337 #403313 #13401C #132140
split-complementary
#401337 #214013 #134033
monochromatic
#180714 #180714 #401337 #6F2160 #9E2F88

Accessibility & contrast

On white

15.37
#401337 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#401337 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401337
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401337#FFFFFF#000000##FFFFFF
##4013371.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401337;
/* rgb */ color: rgb(64, 19, 55);
/* oklch */ color: oklch(27.5% 0.086 336.3);
Tailwind
colors: {
  custom: {
    50: '#77546e',
    500: '#401337',
    950: '#000000',
  },
}
SCSS
$custom: #401337;
$custom-light: #77546e;
$custom-dark: #000000;
JSON
{
  "hex": "#401337",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 55
  },
  "hsl": {
    "h": 312,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27479,
    "c": 0.08572,
    "h": 336.3
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#401337
secondary
#367943
accent
#DE684A
background
#F7F5F6
surface
#EDE8EB
border
#C8C4C6
text
#090307
muted
#7B787A

Preview Lab

Preview with #401337

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

Preview Lab → · Contrast checker → · Palette generator →

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