#401FA6#401FA6

#401FA6 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.196 H 283.5°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#401FA6
RGBrgb(64, 31, 166)
HSLhsl(255, 69%, 39%)
HSVhsv(255, 81%, 65%)
CMYKcmyk(61.4%, 81.3%, 0%, 34.9%)
CIE-LABlab(26.22, 49.92, -66.14)
CIE-LCHlch(26.22, 82.86, 307.05°)
OKLaboklab(38.66% 0.0459 -0.1907)
OKLCHoklch(38.66% 0.196 283.5)
XYZxyz(9.4851, 4.8225, 36.5000)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401FA6 #85A61F
analogous
#1F41A6 #401FA6 #831FA6
triadic
#401FA6 #A6401F #1FA640
tetradic
#401FA6 #A61F41 #85A61F #1FA683
square
#401FA6 #A61F41 #85A61F #1FA683
split-complementary
#401FA6 #A6831F #41A61F
monochromatic
#180C3F #2C1572 #401FA6 #552BD7 #7E5EE1

Accessibility & contrast

On white

10.69
#401FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#401FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401FA6
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401FA6#FFFFFF#000000##FFFFFF
##401FA61.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #401fa6;
/* rgb */ color: rgb(64, 31, 166);
/* oklch */ color: oklch(38.7% 0.196 283.5);
Tailwind
colors: {
  custom: {
    50: '#8260c2',
    500: '#401fa6',
    950: '#000000',
  },
}
SCSS
$custom: #401fa6;
$custom-light: #8260c2;
$custom-dark: #000000;
JSON
{
  "hex": "#401fa6",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 254.667,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38663,
    "c": 0.19614,
    "h": 283.5
  },
  "luminance": 0.04823
}

Semantic roles & 50–950 ramp

primary
#401FA6
secondary
#ACC55B
accent
#EB3CC1
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #401FA6

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

Preview Lab → · Contrast checker → · Palette generator →

#401FA6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva