#401381#401381

#401381 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.6% C 0.165 H 293.8°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#401381
RGBrgb(64, 19, 129)
HSLhsl(265, 74%, 29%)
HSVhsv(265, 85%, 51%)
CMYKcmyk(50.4%, 85.3%, 0%, 49.4%)
CIE-LABlab(20.60, 44.69, -52.52)
CIE-LCHlch(20.60, 68.96, 310.39°)
OKLaboklab(33.61% 0.0665 -0.1508)
OKLCHoklch(33.61% 0.165 293.8)
XYZxyz(6.3086, 3.1405, 21.0384)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401381 #548113
analogous
#131D81 #401381 #771381
triadic
#401381 #814013 #138140
tetradic
#401381 #81131D #548113 #138177
square
#401381 #81131D #548113 #138177
split-complementary
#401381 #817713 #1D8113
monochromatic
#0D041B #260B4C #401381 #5A1BB6 #772EE0

Accessibility & contrast

On white

12.90
#401381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#401381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401381
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401381#FFFFFF#000000##FFFFFF
##4013811.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#2B344C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401381;
/* rgb */ color: rgb(64, 19, 129);
/* oklch */ color: oklch(33.6% 0.165 293.8);
Tailwind
colors: {
  custom: {
    50: '#7d58a7',
    500: '#401381',
    950: '#000000',
  },
}
SCSS
$custom: #401381;
$custom-light: #7d58a7;
$custom-dark: #000000;
JSON
{
  "hex": "#401381",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 264.545,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33614,
    "c": 0.1648,
    "h": 293.8
  },
  "luminance": 0.03141
}

Semantic roles & 50–950 ramp

primary
#401381
secondary
#83B63A
accent
#F137A5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401381

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

Preview Lab → · Contrast checker → · Palette generator →

#401381 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva