#400331#400331

#400331 is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.4% C 0.104 H 340.8°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#400331
RGBrgb(64, 3, 49)
HSLhsl(315, 91%, 13%)
HSVhsv(315, 95%, 25%)
CMYKcmyk(0%, 95.3%, 23.4%, 74.9%)
CIE-LABlab(11.80, 32.74, -12.66)
CIE-LCHlch(11.80, 35.10, 338.86°)
OKLaboklab(25.36% 0.0983 -0.0342)
OKLCHoklch(25.36% 0.104 340.8)
XYZxyz(2.7014, 1.3772, 3.0287)
Luminance0.0138 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400331 #034012
analogous
#300340 #400331 #400312
triadic
#400331 #314003 #033140
tetradic
#400331 #403003 #034012 #031240
square
#400331 #403003 #034012 #031240
split-complementary
#400331 #124003 #034030
monochromatic
#1D0116 #1D0116 #400331 #7A065E #B5088B

Accessibility & contrast

On white

16.47
#400331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#400331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400331
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400331#FFFFFF#000000##FFFFFF
##4003311.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081932
Deuteranopia (green-blind)
#1D2330
Tritanopia (blue-blind)
#45041A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400331;
/* rgb */ color: rgb(64, 3, 49);
/* oklch */ color: oklch(25.4% 0.104 340.8);
Tailwind
colors: {
  custom: {
    50: '#784d69',
    500: '#400331',
    950: '#000000',
  },
}
SCSS
$custom: #400331;
$custom-light: #784d69;
$custom-dark: #000000;
JSON
{
  "hex": "#400331",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 314.754,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.25362,
    "c": 0.10411,
    "h": 340.8
  },
  "luminance": 0.01377
}

Semantic roles & 50–950 ramp

primary
#400331
secondary
#1D8236
accent
#FF5D29
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400331

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

Preview Lab → · Contrast checker → · Palette generator →

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