#401FA5#401FA5

#401FA5 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.195 H 283.7°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#401FA5
RGBrgb(64, 31, 165)
HSLhsl(255, 68%, 38%)
HSVhsv(255, 81%, 65%)
CMYKcmyk(61.2%, 81.2%, 0%, 35.3%)
CIE-LABlab(26.12, 49.64, -65.71)
CIE-LCHlch(26.12, 82.35, 307.07°)
OKLaboklab(38.56% 0.0463 -0.1894)
OKLCHoklch(38.56% 0.195 283.7)
XYZxyz(9.3938, 4.7859, 36.0188)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401FA5 #84A51F
analogous
#1F41A5 #401FA5 #831FA5
triadic
#401FA5 #A5401F #1FA540
tetradic
#401FA5 #A51F41 #84A51F #1FA583
square
#401FA5 #A51F41 #84A51F #1FA583
split-complementary
#401FA5 #A5831F #41A51F
monochromatic
#180C3E #2C1571 #401FA5 #552AD7 #7E5EE1

Accessibility & contrast

On white

10.73
#401FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401FA5
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401FA5#FFFFFF#000000##FFFFFF
##401FA51.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #401fa5;
/* rgb */ color: rgb(64, 31, 165);
/* oklch */ color: oklch(38.6% 0.195 283.7);
Tailwind
colors: {
  custom: {
    50: '#8260c1',
    500: '#401fa5',
    950: '#000000',
  },
}
SCSS
$custom: #401fa5;
$custom-light: #8260c1;
$custom-dark: #000000;
JSON
{
  "hex": "#401fa5",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 254.776,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38557,
    "c": 0.195,
    "h": 283.7
  },
  "luminance": 0.04787
}

Semantic roles & 50–950 ramp

primary
#401FA5
secondary
#ABC55B
accent
#EB3DC0
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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