#401338#401338

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

Color values

HEX#401338
RGBrgb(64, 19, 56)
HSLhsl(311, 54%, 16%)
HSVhsv(311, 70%, 25%)
CMYKcmyk(0%, 70.3%, 12.5%, 74.9%)
CIE-LABlab(14.63, 27.04, -13.31)
CIE-LCHlch(14.63, 30.14, 333.80°)
OKLaboklab(27.54% 0.0787 -0.0362)
OKLCHoklch(27.54% 0.087 335.3)
XYZxyz(3.0611, 1.8415, 3.9348)
Luminance0.0184 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401338 #13401B
analogous
#321340 #401338 #401322
triadic
#401338 #384013 #133840
tetradic
#401338 #403213 #13401B #132240
square
#401338 #403213 #13401B #132240
split-complementary
#401338 #224013 #134032
monochromatic
#180715 #180715 #401338 #6F2161 #9E2F8B

Accessibility & contrast

On white

15.35
#401338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401338
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401338#FFFFFF#000000##FFFFFF
##4013381.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132139
Deuteranopia (green-blind)
#212737
Tritanopia (blue-blind)
#431623
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #401338;
/* rgb */ color: rgb(64, 19, 56);
/* oklch */ color: oklch(27.5% 0.087 335.3);
Tailwind
colors: {
  custom: {
    50: '#77546e',
    500: '#401338',
    950: '#000000',
  },
}
SCSS
$custom: #401338;
$custom-light: #77546e;
$custom-dark: #000000;
JSON
{
  "hex": "#401338",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 56
  },
  "hsl": {
    "h": 310.667,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27536,
    "c": 0.08663,
    "h": 335.3
  },
  "luminance": 0.01841
}

Semantic roles & 50–950 ramp

primary
#401338
secondary
#367942
accent
#DE644A
background
#F7F5F6
surface
#EDE8EC
border
#C8C4C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #401338

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

Preview Lab → · Contrast checker → · Palette generator →

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