#400F51#400F51

#400F51 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.8% C 0.118 H 315.6°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#400F51
RGBrgb(64, 15, 81)
HSLhsl(285, 69%, 19%)
HSVhsv(285, 81%, 32%)
CMYKcmyk(21%, 81.5%, 0%, 68.2%)
CIE-LABlab(15.62, 34.22, -29.16)
CIE-LCHlch(15.62, 44.96, 319.56°)
OKLaboklab(28.78% 0.0841 -0.0822)
OKLCHoklch(28.78% 0.118 315.6)
XYZxyz(3.7701, 2.0259, 7.9754)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F51 #20510F
analogous
#1F0F51 #400F51 #510F41
triadic
#400F51 #51400F #0F5140
tetradic
#400F51 #511F0F #20510F #0F4151
square
#400F51 #511F0F #20510F #0F4151
split-complementary
#400F51 #41510F #0F511F
monochromatic
#14051A #17051D #400F51 #691985 #9222B8

Accessibility & contrast

On white

14.94
#400F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#400F51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F51
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F51#FFFFFF#000000##FFFFFF
##400F511.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002453
Deuteranopia (green-blind)
#0D2850
Tritanopia (blue-blind)
#3F1D2F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #400f51;
/* rgb */ color: rgb(64, 15, 81);
/* oklch */ color: oklch(28.8% 0.118 315.6);
Tailwind
colors: {
  custom: {
    50: '#785382',
    500: '#400f51',
    950: '#000000',
  },
}
SCSS
$custom: #400f51;
$custom-light: #785382;
$custom-dark: #000000;
JSON
{
  "hex": "#400f51",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 284.545,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28782,
    "c": 0.11757,
    "h": 315.6
  },
  "luminance": 0.02026
}

Semantic roles & 50–950 ramp

primary
#400F51
secondary
#488B31
accent
#EC3C69
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400F51

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

Preview Lab → · Contrast checker → · Palette generator →

#400F51 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva