#400E3F#400E3F

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

Color values

HEX#400E3F
RGBrgb(64, 14, 63)
HSLhsl(301, 64%, 15%)
HSVhsv(301, 78%, 25%)
CMYKcmyk(0%, 78.1%, 1.6%, 74.9%)
CIE-LABlab(14.19, 30.78, -18.96)
CIE-LCHlch(14.19, 36.16, 328.37°)
OKLaboklab(27.35% 0.0864 -0.0524)
OKLCHoklch(27.35% 0.101 328.8)
XYZxyz(3.1686, 1.7632, 4.8751)
Luminance0.0176 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E3F #0E400F
analogous
#280E40 #400E3F #400E26
triadic
#400E3F #3F400E #0E3F40
tetradic
#400E3F #40280E #0E400F #0E2640
square
#400E3F #40280E #0E400F #0E2640
split-complementary
#400E3F #26400E #0E4028
monochromatic
#190519 #190519 #400E3F #721970 #A424A2

Accessibility & contrast

On white

15.53
#400E3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E3F
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E3F#FFFFFF#000000##FFFFFF
##400E3F1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400e3f;
/* rgb */ color: rgb(64, 14, 63);
/* oklch */ color: oklch(27.4% 0.101 328.8);
Tailwind
colors: {
  custom: {
    50: '#775274',
    500: '#400e3f',
    950: '#000000',
  },
}
SCSS
$custom: #400e3f;
$custom-light: #775274;
$custom-dark: #000000;
JSON
{
  "hex": "#400e3f",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 63
  },
  "hsl": {
    "h": 301.2,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.27351,
    "c": 0.10103,
    "h": 328.8
  },
  "luminance": 0.01763
}

Semantic roles & 50–950 ramp

primary
#400E3F
secondary
#2F7B30
accent
#E74441
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400E3F

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

Preview Lab → · Contrast checker → · Palette generator →

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