#400E5A#400E5A

#400E5A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.128 H 310.6°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#400E5A
RGBrgb(64, 14, 90)
HSLhsl(279, 73%, 20%)
HSVhsv(279, 84%, 35%)
CMYKcmyk(28.9%, 84.4%, 0%, 64.7%)
CIE-LABlab(16.22, 36.72, -34.29)
CIE-LCHlch(16.22, 50.24, 316.96°)
OKLaboklab(29.43% 0.0833 -0.0972)
OKLCHoklch(29.43% 0.128 310.6)
XYZxyz(4.1165, 2.1423, 9.8675)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E5A #285A0E
analogous
#1A0E5A #400E5A #5A0E4E
triadic
#400E5A #5A400E #0E5A40
tetradic
#400E5A #5A1A0E #285A0E #0E4E5A
square
#400E5A #5A1A0E #285A0E #0E4E5A
split-complementary
#400E5A #4E5A0E #0E5A1A
monochromatic
#13041A #1A0625 #400E5A #66168F #8B1EC4

Accessibility & contrast

On white

14.70
#400E5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E5A
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E5A#FFFFFF#000000##FFFFFF
##400E5A1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002958
Tritanopia (blue-blind)
#3C2134
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #400e5a;
/* rgb */ color: rgb(64, 14, 90);
/* oklch */ color: oklch(29.4% 0.128 310.6);
Tailwind
colors: {
  custom: {
    50: '#785389',
    500: '#400e5a',
    950: '#000000',
  },
}
SCSS
$custom: #400e5a;
$custom-light: #785389;
$custom-dark: #000000;
JSON
{
  "hex": "#400e5a",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 90
  },
  "hsl": {
    "h": 279.474,
    "s": 73.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29433,
    "c": 0.12802,
    "h": 310.6
  },
  "luminance": 0.02142
}

Semantic roles & 50–950 ramp

primary
#400E5A
secondary
#529430
accent
#F03877
background
#F7F5F8
surface
#EEE8F0
border
#C9C4CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400E5A

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

Preview Lab → · Contrast checker → · Palette generator →

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