#401FA0#401FA0

#401FA0 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.189 H 284.6°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#401FA0
RGBrgb(64, 31, 160)
HSLhsl(255, 68%, 37%)
HSVhsv(255, 81%, 63%)
CMYKcmyk(60%, 80.6%, 0%, 37.3%)
CIE-LABlab(25.59, 48.20, -63.54)
CIE-LCHlch(25.59, 79.76, 307.18°)
OKLaboklab(38.03% 0.0479 -0.1831)
OKLCHoklch(38.03% 0.189 284.6)
XYZxyz(8.9476, 4.6075, 33.6687)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401FA0 #7FA01F
analogous
#1F3EA0 #401FA0 #811FA0
triadic
#401FA0 #A0401F #1FA040
tetradic
#401FA0 #A01F3E #7FA01F #1FA081
square
#401FA0 #A01F3E #7FA01F #1FA081
split-complementary
#401FA0 #A0811F #3EA01F
monochromatic
#170B39 #2B156D #401FA0 #5529D3 #7C5ADF

Accessibility & contrast

On white

10.93
#401FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#401FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401FA0
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401FA0#FFFFFF#000000##FFFFFF
##401FA01.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#00399E
Tritanopia (blue-blind)
#024660
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #401fa0;
/* rgb */ color: rgb(64, 31, 160);
/* oklch */ color: oklch(38.0% 0.189 284.6);
Tailwind
colors: {
  custom: {
    50: '#8160bd',
    500: '#401fa0',
    950: '#000000',
  },
}
SCSS
$custom: #401fa0;
$custom-light: #8160bd;
$custom-dark: #000000;
JSON
{
  "hex": "#401fa0",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 255.349,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38032,
    "c": 0.18928,
    "h": 284.6
  },
  "luminance": 0.04608
}

Semantic roles & 50–950 ramp

primary
#401FA0
secondary
#A8C358
accent
#EA3DBE
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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