#400D5A#400D5A

#400D5A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.129 H 310.7°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#400D5A
RGBrgb(64, 13, 90)
HSLhsl(280, 75%, 20%)
HSVhsv(280, 86%, 35%)
CMYKcmyk(28.9%, 85.6%, 0%, 64.7%)
CIE-LABlab(16.09, 37.11, -34.50)
CIE-LCHlch(16.09, 50.67, 317.08°)
OKLaboklab(29.34% 0.0842 -0.0979)
OKLCHoklch(29.34% 0.129 310.7)
XYZxyz(4.1034, 2.1161, 9.8632)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D5A #275A0D
analogous
#190D5A #400D5A #5A0D4D
triadic
#400D5A #5A400D #0D5A40
tetradic
#400D5A #5A190D #275A0D #0D4D5A
square
#400D5A #5A190D #275A0D #0D4D5A
split-complementary
#400D5A #4D5A0D #0D5A19
monochromatic
#13041B #1A0525 #400D5A #66158F #8C1CC5

Accessibility & contrast

On white

14.76
#400D5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#400D5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D5A
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D5A#FFFFFF#000000##FFFFFF
##400D5A1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002958
Tritanopia (blue-blind)
#3C2034
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #400d5a;
/* rgb */ color: rgb(64, 13, 90);
/* oklch */ color: oklch(29.3% 0.129 310.7);
Tailwind
colors: {
  custom: {
    50: '#785389',
    500: '#400d5a',
    950: '#000000',
  },
}
SCSS
$custom: #400d5a;
$custom-light: #785389;
$custom-dark: #000000;
JSON
{
  "hex": "#400d5a",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 90
  },
  "hsl": {
    "h": 279.74,
    "s": 74.757,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29341,
    "c": 0.12908,
    "h": 310.7
  },
  "luminance": 0.02116
}

Semantic roles & 50–950 ramp

primary
#400D5A
secondary
#51942E
accent
#F13676
background
#F7F4F8
surface
#EEE8F0
border
#C9C4CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400D5A

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

Preview Lab → · Contrast checker → · Palette generator →

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