#400E39#400E39

#400E39 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.0% C 0.096 H 334.1°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#400E39
RGBrgb(64, 14, 57)
HSLhsl(308, 64%, 15%)
HSVhsv(308, 78%, 25%)
CMYKcmyk(0%, 78.1%, 10.9%, 74.9%)
CIE-LABlab(13.83, 29.63, -15.28)
CIE-LCHlch(13.83, 33.34, 332.72°)
OKLaboklab(26.97% 0.0859 -0.0418)
OKLCHoklch(26.97% 0.096 334.1)
XYZxyz(3.0099, 1.6997, 4.0397)
Luminance0.0170 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E39 #0E4015
analogous
#2E0E40 #400E39 #400E20
triadic
#400E39 #39400E #0E3940
tetradic
#400E39 #402E0E #0E4015 #0E2040
square
#400E39 #402E0E #0E4015 #0E2040
split-complementary
#400E39 #20400E #0E402E
monochromatic
#190516 #190516 #400E39 #721966 #A42492

Accessibility & contrast

On white

15.67
#400E39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#400E39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E39
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E39#FFFFFF#000000##FFFFFF
##400E391.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1F3A
Deuteranopia (green-blind)
#1E2638
Tritanopia (blue-blind)
#431222
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400e39;
/* rgb */ color: rgb(64, 14, 57);
/* oklch */ color: oklch(27.0% 0.096 334.1);
Tailwind
colors: {
  custom: {
    50: '#77526f',
    500: '#400e39',
    950: '#000000',
  },
}
SCSS
$custom: #400e39;
$custom-light: #77526f;
$custom-dark: #000000;
JSON
{
  "hex": "#400e39",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 57
  },
  "hsl": {
    "h": 308.4,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.26967,
    "c": 0.09553,
    "h": 334.1
  },
  "luminance": 0.01699
}

Semantic roles & 50–950 ramp

primary
#400E39
secondary
#2F7B39
accent
#E75841
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400E39

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

Preview Lab → · Contrast checker → · Palette generator →

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