#401438#401438

#401438 is a dark, moderate pink. Relative luminance 0.019; OKLCH L 27.7% C 0.085 H 335.4°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#401438
RGBrgb(64, 20, 56)
HSLhsl(311, 52%, 16%)
HSVhsv(311, 69%, 25%)
CMYKcmyk(0%, 68.8%, 12.5%, 74.9%)
CIE-LABlab(14.82, 26.52, -13.01)
CIE-LCHlch(14.82, 29.54, 333.86°)
OKLaboklab(27.68% 0.0772 -0.0354)
OKLCHoklch(27.68% 0.085 335.4)
XYZxyz(3.0783, 1.8761, 3.9406)
Luminance0.0188 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401438 #14401C
analogous
#321440 #401438 #401422
triadic
#401438 #384014 #143840
tetradic
#401438 #403214 #14401C #142240
square
#401438 #403214 #14401C #142240
split-complementary
#401438 #224014 #144032
monochromatic
#170714 #170714 #401438 #6F2361 #9D318A

Accessibility & contrast

On white

15.27
#401438 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#401438 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401438
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401438#FFFFFF#000000##FFFFFF
##4014381.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142139
Deuteranopia (green-blind)
#222837
Tritanopia (blue-blind)
#431723
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #401438;
/* rgb */ color: rgb(64, 20, 56);
/* oklch */ color: oklch(27.7% 0.085 335.4);
Tailwind
colors: {
  custom: {
    50: '#77556e',
    500: '#401438',
    950: '#000000',
  },
}
SCSS
$custom: #401438;
$custom-light: #77556e;
$custom-dark: #000000;
JSON
{
  "hex": "#401438",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 56
  },
  "hsl": {
    "h": 310.909,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27675,
    "c": 0.08489,
    "h": 335.4
  },
  "luminance": 0.01876
}

Semantic roles & 50–950 ramp

primary
#401438
secondary
#387843
accent
#DC664C
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #401438

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

Preview Lab → · Contrast checker → · Palette generator →

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