#400E40#400E40

#400E40 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.4% C 0.102 H 327.9°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#400E40
RGBrgb(64, 14, 64)
HSLhsl(300, 64%, 15%)
HSVhsv(300, 78%, 25%)
CMYKcmyk(0%, 78.1%, 0%, 74.9%)
CIE-LABlab(14.26, 30.98, -19.57)
CIE-LCHlch(14.26, 36.64, 327.73°)
OKLaboklab(27.42% 0.0864 -0.0541)
OKLCHoklch(27.42% 0.102 327.9)
XYZxyz(3.1968, 1.7745, 5.0236)
Luminance0.0177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E40 #0E400E
analogous
#270E40 #400E40 #400E27
triadic
#400E40 #40400E #0E4040
tetradic
#400E40 #40270E #0E400E #0E2740
square
#400E40 #40270E #0E400E #0E2740
split-complementary
#400E40 #27400E #0E4027
monochromatic
#190519 #190519 #400E40 #721972 #A424A4

Accessibility & contrast

On white

15.50
#400E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#400E40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E40
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E40#FFFFFF#000000##FFFFFF
##400E401.0015.501.3515.50
#FFFFFF15.501.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062041
Deuteranopia (green-blind)
#1B263F
Tritanopia (blue-blind)
#421525
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400e40;
/* rgb */ color: rgb(64, 14, 64);
/* oklch */ color: oklch(27.4% 0.102 327.9);
Tailwind
colors: {
  custom: {
    50: '#775275',
    500: '#400e40',
    950: '#000000',
  },
}
SCSS
$custom: #400e40;
$custom-light: #775275;
$custom-dark: #000000;
JSON
{
  "hex": "#400e40",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.27418,
    "c": 0.10197,
    "h": 327.9
  },
  "luminance": 0.01774
}

Semantic roles & 50–950 ramp

primary
#400E40
secondary
#2F7B2F
accent
#E74141
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400E40

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

Preview Lab → · Contrast checker → · Palette generator →

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