#400334#400334

#400334 is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.5% C 0.106 H 338.1°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#400334
RGBrgb(64, 3, 52)
HSLhsl(312, 91%, 13%)
HSVhsv(312, 95%, 25%)
CMYKcmyk(0%, 95.3%, 18.8%, 74.9%)
CIE-LABlab(11.98, 33.21, -14.57)
CIE-LCHlch(11.98, 36.27, 336.30°)
OKLaboklab(25.54% 0.0987 -0.0396)
OKLCHoklch(25.54% 0.106 338.1)
XYZxyz(2.7668, 1.4033, 3.3733)
Luminance0.0140 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400334 #03400F
analogous
#2D0340 #400334 #400315
triadic
#400334 #344003 #033440
tetradic
#400334 #402D03 #03400F #031540
square
#400334 #402D03 #03400F #031540
split-complementary
#400334 #154003 #03402D
monochromatic
#1D0118 #1D0118 #400334 #7A0663 #B50893

Accessibility & contrast

On white

16.40
#400334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400334
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400334#FFFFFF#000000##FFFFFF
##4003341.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061935
Deuteranopia (green-blind)
#1C2333
Tritanopia (blue-blind)
#44061C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400334;
/* rgb */ color: rgb(64, 3, 52);
/* oklch */ color: oklch(25.5% 0.106 338.1);
Tailwind
colors: {
  custom: {
    50: '#784d6b',
    500: '#400334',
    950: '#000000',
  },
}
SCSS
$custom: #400334;
$custom-light: #784d6b;
$custom-dark: #000000;
JSON
{
  "hex": "#400334",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 311.803,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.25544,
    "c": 0.10632,
    "h": 338.1
  },
  "luminance": 0.01403
}

Semantic roles & 50–950 ramp

primary
#400334
secondary
#1D8231
accent
#FF5329
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400334

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

Preview Lab → · Contrast checker → · Palette generator →

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