#401128#401128

#401128 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.5% C 0.078 H 353.5°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#401128
RGBrgb(64, 17, 40)
HSLhsl(331, 58%, 16%)
HSVhsv(331, 73%, 25%)
CMYKcmyk(0%, 73.4%, 37.5%, 74.9%)
CIE-LABlab(13.50, 25.38, -3.47)
CIE-LCHlch(13.50, 25.61, 352.22°)
OKLaboklab(26.45% 0.0774 -0.0089)
OKLCHoklch(26.45% 0.078 353.5)
XYZxyz(2.6979, 1.6444, 2.1824)
Luminance0.0164 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401128 #114029
analogous
#40113F #401128 #401111
triadic
#401128 #284011 #112840
tetradic
#401128 #3F4011 #114029 #111140
square
#401128 #3F4011 #114029 #111140
split-complementary
#401128 #114011 #113F40
monochromatic
#18060F #18060F #401128 #701E46 #A12B64

Accessibility & contrast

On white

15.80
#401128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#401128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401128
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401128#FFFFFF#000000##FFFFFF
##4011281.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181D29
Deuteranopia (green-blind)
#252627
Tritanopia (blue-blind)
#450E1A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #401128;
/* rgb */ color: rgb(64, 17, 40);
/* oklch */ color: oklch(26.5% 0.078 353.5);
Tailwind
colors: {
  custom: {
    50: '#775361',
    500: '#401128',
    950: '#000000',
  },
}
SCSS
$custom: #401128;
$custom-light: #775361;
$custom-dark: #000000;
JSON
{
  "hex": "#401128",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 40
  },
  "hsl": {
    "h": 330.638,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.26453,
    "c": 0.07794,
    "h": 353.5
  },
  "luminance": 0.01644
}

Semantic roles & 50–950 ramp

primary
#401128
secondary
#337957
accent
#E19647
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #401128

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

Preview Lab → · Contrast checker → · Palette generator →

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