#400E4B#400E4B

#400E4B is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.2% C 0.113 H 319.7°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#400E4B
RGBrgb(64, 14, 75)
HSLhsl(289, 69%, 17%)
HSVhsv(289, 81%, 29%)
CMYKcmyk(14.7%, 81.3%, 0%, 70.6%)
CIE-LABlab(15.02, 33.29, -26.01)
CIE-LCHlch(15.02, 42.25, 322.00°)
OKLaboklab(28.21% 0.0859 -0.073)
OKLCHoklch(28.21% 0.113 319.7)
XYZxyz(3.5412, 1.9122, 6.8378)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E4B #194B0E
analogous
#210E4B #400E4B #4B0E38
triadic
#400E4B #4B400E #0E4B40
tetradic
#400E4B #4B210E #194B0E #0E384B
square
#400E4B #4B210E #194B0E #0E384B
split-complementary
#400E4B #384B0E #0E4B21
monochromatic
#16051A #16051A #400E4B #6C187F #9821B2

Accessibility & contrast

On white

15.19
#400E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#400E4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E4B
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E4B#FFFFFF#000000##FFFFFF
##400E4B1.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#13274A
Tritanopia (blue-blind)
#401A2B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400e4b;
/* rgb */ color: rgb(64, 14, 75);
/* oklch */ color: oklch(28.2% 0.113 319.7);
Tailwind
colors: {
  custom: {
    50: '#77537e',
    500: '#400e4b',
    950: '#000000',
  },
}
SCSS
$custom: #400e4b;
$custom-light: #77537e;
$custom-dark: #000000;
JSON
{
  "hex": "#400e4b",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 75
  },
  "hsl": {
    "h": 289.18,
    "s": 68.539,
    "l": 17.451
  },
  "oklch": {
    "l": 0.28209,
    "c": 0.11273,
    "h": 319.7
  },
  "luminance": 0.01912
}

Semantic roles & 50–950 ramp

primary
#400E4B
secondary
#3F862F
accent
#EB3C5C
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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