#400E49#400E49

#400E49 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.1% C 0.111 H 321.1°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#400E49
RGBrgb(64, 14, 73)
HSLhsl(291, 68%, 17%)
HSVhsv(291, 81%, 29%)
CMYKcmyk(12.3%, 80.8%, 0%, 71.4%)
CIE-LABlab(14.87, 32.86, -24.87)
CIE-LCHlch(14.87, 41.21, 322.88°)
OKLaboklab(28.06% 0.0861 -0.0696)
OKLCHoklch(28.06% 0.111 321.1)
XYZxyz(3.4739, 1.8853, 6.4830)
Luminance0.0188 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E49 #17490E
analogous
#220E49 #400E49 #490E35
triadic
#400E49 #49400E #0E4940
tetradic
#400E49 #49220E #17490E #0E3549
square
#400E49 #49220E #17490E #0E3549
split-complementary
#400E49 #35490E #0E4922
monochromatic
#17051A #17051A #400E49 #6D187C #9A22B0

Accessibility & contrast

On white

15.25
#400E49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E49
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E49#FFFFFF#000000##FFFFFF
##400E491.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224B
Deuteranopia (green-blind)
#152748
Tritanopia (blue-blind)
#41192A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400e49;
/* rgb */ color: rgb(64, 14, 73);
/* oklch */ color: oklch(28.1% 0.111 321.1);
Tailwind
colors: {
  custom: {
    50: '#77527c',
    500: '#400e49',
    950: '#000000',
  },
}
SCSS
$custom: #400e49;
$custom-light: #77527c;
$custom-dark: #000000;
JSON
{
  "hex": "#400e49",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 73
  },
  "hsl": {
    "h": 290.847,
    "s": 67.816,
    "l": 17.059
  },
  "oklch": {
    "l": 0.28058,
    "c": 0.11074,
    "h": 321.1
  },
  "luminance": 0.01885
}

Semantic roles & 50–950 ramp

primary
#400E49
secondary
#3C842F
accent
#EB3D58
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #400E49

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

Preview Lab → · Contrast checker → · Palette generator →

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