#400E55#400E55

#400E55 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.0% C 0.123 H 313.4°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#400E55
RGBrgb(64, 14, 85)
HSLhsl(282, 72%, 19%)
HSVhsv(282, 84%, 33%)
CMYKcmyk(24.7%, 83.5%, 0%, 66.7%)
CIE-LABlab(15.80, 35.55, -31.59)
CIE-LCHlch(15.80, 47.56, 318.37°)
OKLaboklab(29.01% 0.0844 -0.0893)
OKLCHoklch(29.01% 0.123 313.4)
XYZxyz(3.9108, 2.0601, 8.7842)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E55 #23550E
analogous
#1D0E55 #400E55 #550E47
triadic
#400E55 #55400E #0E5540
tetradic
#400E55 #551D0E #23550E #0E4755
square
#400E55 #551D0E #23550E #0E4755
split-complementary
#400E55 #47550E #0E551D
monochromatic
#14041A #180520 #400E55 #68178A #8F1FBE

Accessibility & contrast

On white

14.87
#400E55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E55
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E55#FFFFFF#000000##FFFFFF
##400E551.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002557
Deuteranopia (green-blind)
#062854
Tritanopia (blue-blind)
#3E1F31
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #400e55;
/* rgb */ color: rgb(64, 14, 85);
/* oklch */ color: oklch(29.0% 0.123 313.4);
Tailwind
colors: {
  custom: {
    50: '#785385',
    500: '#400e55',
    950: '#000000',
  },
}
SCSS
$custom: #400e55;
$custom-light: #785385;
$custom-dark: #000000;
JSON
{
  "hex": "#400e55",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 85
  },
  "hsl": {
    "h": 282.254,
    "s": 71.717,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29008,
    "c": 0.12287,
    "h": 313.4
  },
  "luminance": 0.0206
}

Semantic roles & 50–950 ramp

primary
#400E55
secondary
#4C8F30
accent
#EE396F
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400E55

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

Preview Lab → · Contrast checker → · Palette generator →

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