#400E5B#400E5B

#400E5B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.129 H 310.0°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#400E5B
RGBrgb(64, 14, 91)
HSLhsl(279, 73%, 21%)
HSVhsv(279, 85%, 36%)
CMYKcmyk(29.7%, 84.6%, 0%, 64.3%)
CIE-LABlab(16.30, 36.96, -34.82)
CIE-LCHlch(16.30, 50.78, 316.71°)
OKLaboklab(29.52% 0.083 -0.0988)
OKLCHoklch(29.52% 0.129 310)
XYZxyz(4.1593, 2.1595, 10.0932)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E5B #295B0E
analogous
#190E5B #400E5B #5B0E4F
triadic
#400E5B #5B400E #0E5B40
tetradic
#400E5B #5B190E #295B0E #0E4F5B
square
#400E5B #5B190E #295B0E #0E4F5B
split-complementary
#400E5B #4F5B0E #0E5B19
monochromatic
#13041B #1B0626 #400E5B #651690 #8B1EC5

Accessibility & contrast

On white

14.67
#400E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#400E5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E5B
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E5B#FFFFFF#000000##FFFFFF
##400E5B1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#3C2135
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #400e5b;
/* rgb */ color: rgb(64, 14, 91);
/* oklch */ color: oklch(29.5% 0.129 310.0);
Tailwind
colors: {
  custom: {
    50: '#78538a',
    500: '#400e5b',
    950: '#000000',
  },
}
SCSS
$custom: #400e5b;
$custom-light: #78538a;
$custom-dark: #000000;
JSON
{
  "hex": "#400e5b",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 91
  },
  "hsl": {
    "h": 278.961,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.2952,
    "c": 0.12905,
    "h": 310
  },
  "luminance": 0.02159
}

Semantic roles & 50–950 ramp

primary
#400E5B
secondary
#539530
accent
#F03878
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #400E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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