#400332#400332

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

Color values

HEX#400332
RGBrgb(64, 3, 50)
HSLhsl(314, 91%, 13%)
HSVhsv(314, 95%, 25%)
CMYKcmyk(0%, 95.3%, 21.9%, 74.9%)
CIE-LABlab(11.86, 32.89, -13.30)
CIE-LCHlch(11.86, 35.48, 337.98°)
OKLaboklab(25.42% 0.0985 -0.036)
OKLCHoklch(25.42% 0.105 339.9)
XYZxyz(2.7227, 1.3857, 3.1411)
Luminance0.0138 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400332 #034011
analogous
#2F0340 #400332 #400314
triadic
#400332 #324003 #033240
tetradic
#400332 #402F03 #034011 #031440
square
#400332 #402F03 #034011 #031440
split-complementary
#400332 #144003 #03402F
monochromatic
#1D0117 #1D0117 #400332 #7A0660 #B5088D

Accessibility & contrast

On white

16.44
#400332 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400332
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400332#FFFFFF#000000##FFFFFF
##4003321.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071933
Deuteranopia (green-blind)
#1D2331
Tritanopia (blue-blind)
#44051A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400332;
/* rgb */ color: rgb(64, 3, 50);
/* oklch */ color: oklch(25.4% 0.105 339.9);
Tailwind
colors: {
  custom: {
    50: '#784d6a',
    500: '#400332',
    950: '#000000',
  },
}
SCSS
$custom: #400332;
$custom-light: #784d6a;
$custom-dark: #000000;
JSON
{
  "hex": "#400332",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 50
  },
  "hsl": {
    "h": 313.77,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.25422,
    "c": 0.10484,
    "h": 339.9
  },
  "luminance": 0.01385
}

Semantic roles & 50–950 ramp

primary
#400332
secondary
#1D8234
accent
#FF5A29
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400332

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

Preview Lab → · Contrast checker → · Palette generator →

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