#400A3F#400A3F

#400A3F is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.9% C 0.106 H 328.9°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#400A3F
RGBrgb(64, 10, 63)
HSLhsl(301, 73%, 15%)
HSVhsv(301, 84%, 25%)
CMYKcmyk(0%, 84.4%, 1.6%, 74.9%)
CIE-LABlab(13.63, 32.39, -19.86)
CIE-LCHlch(13.63, 37.99, 328.49°)
OKLaboklab(26.95% 0.0909 -0.055)
OKLCHoklch(26.95% 0.106 328.9)
XYZxyz(3.1201, 1.6662, 4.8589)
Luminance0.0167 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400A3F #0A400B
analogous
#260A40 #400A3F #400A24
triadic
#400A3F #3F400A #0A3F40
tetradic
#400A3F #40260A #0A400B #0A2440
square
#400A3F #40260A #0A400B #0A2440
split-complementary
#400A3F #24400A #0A4026
monochromatic
#1A041A #1A041A #400A3F #751273 #AA1BA7

Accessibility & contrast

On white

15.75
#400A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#400A3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400A3F
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400A3F#FFFFFF#000000##FFFFFF
##400A3F1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031E40
Deuteranopia (green-blind)
#1A253E
Tritanopia (blue-blind)
#421224
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400a3f;
/* rgb */ color: rgb(64, 10, 63);
/* oklch */ color: oklch(26.9% 0.106 328.9);
Tailwind
colors: {
  custom: {
    50: '#775074',
    500: '#400a3f',
    950: '#000000',
  },
}
SCSS
$custom: #400a3f;
$custom-light: #775074;
$custom-dark: #000000;
JSON
{
  "hex": "#400a3f",
  "rgb": {
    "r": 64,
    "g": 10,
    "b": 63
  },
  "hsl": {
    "h": 301.111,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.26946,
    "c": 0.10626,
    "h": 328.9
  },
  "luminance": 0.01666
}

Semantic roles & 50–950 ramp

primary
#400A3F
secondary
#297D2A
accent
#F03C38
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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