#400E6A#400E6A

#400E6A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.145 H 302.9°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#400E6A
RGBrgb(64, 14, 106)
HSLhsl(273, 77%, 24%)
HSVhsv(273, 87%, 42%)
CMYKcmyk(39.6%, 86.8%, 0%, 58.4%)
CIE-LABlab(17.67, 40.62, -42.53)
CIE-LCHlch(17.67, 58.82, 313.68°)
OKLaboklab(30.89% 0.0785 -0.1215)
OKLCHoklch(30.89% 0.145 302.9)
XYZxyz(4.8723, 2.4447, 13.8481)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E6A #386A0E
analogous
#120E6A #400E6A #6A0E66
triadic
#400E6A #6A400E #0E6A40
tetradic
#400E6A #6A120E #386A0E #0E666A
square
#400E6A #6A120E #386A0E #0E666A
split-complementary
#400E6A #666A0E #0E6A12
monochromatic
#10041B #1F0734 #400E6A #6115A0 #811CD6

Accessibility & contrast

On white

14.10
#400E6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#400E6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E6A
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E6A#FFFFFF#000000##FFFFFF
##400E6A1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002B68
Tritanopia (blue-blind)
#37283D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #400e6a;
/* rgb */ color: rgb(64, 14, 106);
/* oklch */ color: oklch(30.9% 0.145 302.9);
Tailwind
colors: {
  custom: {
    50: '#7a5495',
    500: '#400e6a',
    950: '#000000',
  },
}
SCSS
$custom: #400e6a;
$custom-light: #7a5495;
$custom-dark: #000000;
JSON
{
  "hex": "#400e6a",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 106
  },
  "hsl": {
    "h": 272.609,
    "s": 76.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30893,
    "c": 0.14461,
    "h": 302.9
  },
  "luminance": 0.02445
}

Semantic roles & 50–950 ramp

primary
#400E6A
secondary
#65A331
accent
#F3358C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #400E6A

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

Preview Lab → · Contrast checker → · Palette generator →

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