#400734#400734

#400734 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.9% C 0.101 H 338.4°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#400734
RGBrgb(64, 7, 52)
HSLhsl(313, 80%, 14%)
HSVhsv(313, 89%, 25%)
CMYKcmyk(0%, 89.1%, 18.8%, 74.9%)
CIE-LABlab(12.55, 31.57, -13.69)
CIE-LCHlch(12.55, 34.41, 336.56°)
OKLaboklab(25.95% 0.0937 -0.0372)
OKLCHoklch(25.95% 0.101 338.4)
XYZxyz(2.8102, 1.4902, 3.3878)
Luminance0.0149 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400734 #074013
analogous
#300740 #400734 #400718
triadic
#400734 #344007 #073440
tetradic
#400734 #403007 #074013 #071840
square
#400734 #403007 #074013 #071840
split-complementary
#400734 #184007 #074030
monochromatic
#1C0316 #1C0316 #400734 #770D61 #AE138E

Accessibility & contrast

On white

16.18
#400734 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#400734 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400734
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400734#FFFFFF#000000##FFFFFF
##4007341.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1B35
Deuteranopia (green-blind)
#1E2433
Tritanopia (blue-blind)
#440A1D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400734;
/* rgb */ color: rgb(64, 7, 52);
/* oklch */ color: oklch(25.9% 0.101 338.4);
Tailwind
colors: {
  custom: {
    50: '#774e6b',
    500: '#400734',
    950: '#000000',
  },
}
SCSS
$custom: #400734;
$custom-light: #774e6b;
$custom-dark: #000000;
JSON
{
  "hex": "#400734",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 52
  },
  "hsl": {
    "h": 312.632,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25949,
    "c": 0.1008,
    "h": 338.4
  },
  "luminance": 0.0149
}

Semantic roles & 50–950 ramp

primary
#400734
secondary
#247F37
accent
#F75B31
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400734

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

Preview Lab → · Contrast checker → · Palette generator →

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