#400E57#400E57

#400E57 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.2% C 0.125 H 312.2°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#400E57
RGBrgb(64, 14, 87)
HSLhsl(281, 72%, 20%)
HSVhsv(281, 84%, 34%)
CMYKcmyk(26.4%, 83.9%, 0%, 65.9%)
CIE-LABlab(15.96, 36.02, -32.68)
CIE-LCHlch(15.96, 48.63, 317.78°)
OKLaboklab(29.18% 0.084 -0.0925)
OKLCHoklch(29.18% 0.125 312.2)
XYZxyz(3.9914, 2.0923, 9.2086)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E57 #25570E
analogous
#1C0E57 #400E57 #570E4A
triadic
#400E57 #57400E #0E5740
tetradic
#400E57 #571C0E #25570E #0E4A57
square
#400E57 #571C0E #25570E #0E4A57
split-complementary
#400E57 #4A570E #0E571C
monochromatic
#13041A #190622 #400E57 #67168C #8E1FC0

Accessibility & contrast

On white

14.81
#400E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E57
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E57#FFFFFF#000000##FFFFFF
##400E571.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#032955
Tritanopia (blue-blind)
#3D2032
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #400e57;
/* rgb */ color: rgb(64, 14, 87);
/* oklch */ color: oklch(29.2% 0.125 312.2);
Tailwind
colors: {
  custom: {
    50: '#785387',
    500: '#400e57',
    950: '#000000',
  },
}
SCSS
$custom: #400e57;
$custom-light: #785387;
$custom-dark: #000000;
JSON
{
  "hex": "#400e57",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 87
  },
  "hsl": {
    "h": 281.096,
    "s": 72.277,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29176,
    "c": 0.12493,
    "h": 312.2
  },
  "luminance": 0.02092
}

Semantic roles & 50–950 ramp

primary
#400E57
secondary
#4E9130
accent
#EF3972
background
#F7F4F8
surface
#EEE8EF
border
#C9C4CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400E57

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

Preview Lab → · Contrast checker → · Palette generator →

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