#400E56#400E56

#400E56 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.1% C 0.124 H 312.8°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#400E56
RGBrgb(64, 14, 86)
HSLhsl(282, 72%, 20%)
HSVhsv(282, 84%, 34%)
CMYKcmyk(25.6%, 83.7%, 0%, 66.3%)
CIE-LABlab(15.88, 35.78, -32.14)
CIE-LCHlch(15.88, 48.09, 318.07°)
OKLaboklab(29.09% 0.0842 -0.0909)
OKLCHoklch(29.09% 0.124 312.8)
XYZxyz(3.9508, 2.0761, 8.9949)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E56 #24560E
analogous
#1C0E56 #400E56 #560E48
triadic
#400E56 #56400E #0E5640
tetradic
#400E56 #561C0E #24560E #0E4856
square
#400E56 #561C0E #24560E #0E4856
split-complementary
#400E56 #48560E #0E561C
monochromatic
#14041A #190521 #400E56 #67178B #8E1FBF

Accessibility & contrast

On white

14.84
#400E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E56
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E56#FFFFFF#000000##FFFFFF
##400E561.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#052955
Tritanopia (blue-blind)
#3D1F32
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #400e56;
/* rgb */ color: rgb(64, 14, 86);
/* oklch */ color: oklch(29.1% 0.124 312.8);
Tailwind
colors: {
  custom: {
    50: '#785386',
    500: '#400e56',
    950: '#000000',
  },
}
SCSS
$custom: #400e56;
$custom-light: #785386;
$custom-dark: #000000;
JSON
{
  "hex": "#400e56",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 86
  },
  "hsl": {
    "h": 281.667,
    "s": 72,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29092,
    "c": 0.1239,
    "h": 312.8
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#400E56
secondary
#4D9030
accent
#EF3971
background
#F7F4F8
surface
#EEE8EF
border
#C9C4CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400E56

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

Preview Lab → · Contrast checker → · Palette generator →

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