#400347#400347

#400347 is a dark, vivid purple. Relative luminance 0.016; OKLCH L 26.9% C 0.122 H 323.2°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#400347
RGBrgb(64, 3, 71)
HSLhsl(294, 92%, 15%)
HSVhsv(294, 96%, 28%)
CMYKcmyk(9.9%, 95.8%, 0%, 72.2%)
CIE-LABlab(13.29, 36.59, -26.01)
CIE-LCHlch(13.29, 44.90, 324.59°)
OKLaboklab(26.89% 0.0976 -0.0729)
OKLCHoklch(26.89% 0.122 323.2)
XYZxyz(3.2841, 1.6103, 6.0978)
Luminance0.0161 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400347 #0A4703
analogous
#1E0347 #400347 #47032C
triadic
#400347 #474003 #034740
tetradic
#400347 #471E03 #0A4703 #032C47
square
#400347 #471E03 #0A4703 #032C47
split-complementary
#400347 #2C4703 #03471E
monochromatic
#1A011D #1A011D #400347 #750582 #AA08BC

Accessibility & contrast

On white

15.89
#400347 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#400347 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400347
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400347#FFFFFF#000000##FFFFFF
##4003471.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E49
Deuteranopia (green-blind)
#102446
Tritanopia (blue-blind)
#411227
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400347;
/* rgb */ color: rgb(64, 3, 71);
/* oklch */ color: oklch(26.9% 0.122 323.2);
Tailwind
colors: {
  custom: {
    50: '#784e7b',
    500: '#400347',
    950: '#000000',
  },
}
SCSS
$custom: #400347;
$custom-light: #784e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#400347",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 71
  },
  "hsl": {
    "h": 293.824,
    "s": 91.892,
    "l": 14.51
  },
  "oklch": {
    "l": 0.26893,
    "c": 0.12177,
    "h": 323.2
  },
  "luminance": 0.0161
}

Semantic roles & 50–950 ramp

primary
#400347
secondary
#29881E
accent
#FF293F
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400347

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

Preview Lab → · Contrast checker → · Palette generator →

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