#401EA7#401EA7

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

Color values

HEX#401EA7
RGBrgb(64, 30, 167)
HSLhsl(255, 70%, 39%)
HSVhsv(255, 82%, 65%)
CMYKcmyk(61.7%, 82%, 0%, 34.5%)
CIE-LABlab(26.18, 50.65, -66.81)
CIE-LCHlch(26.18, 83.84, 307.17°)
OKLaboklab(38.67% 0.0461 -0.1926)
OKLCHoklch(38.67% 0.198 283.5)
XYZxyz(9.5515, 4.8079, 36.9764)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401EA7 #85A71E
analogous
#1E40A7 #401EA7 #841EA7
triadic
#401EA7 #A7401E #1EA740
tetradic
#401EA7 #A71E40 #85A71E #1EA784
square
#401EA7 #A71E40 #85A71E #1EA784
split-complementary
#401EA7 #A7841E #40A71E
monochromatic
#180B3F #2C1573 #401EA7 #552AD9 #7E5DE2

Accessibility & contrast

On white

10.70
#401EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401EA7
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401EA7#FFFFFF#000000##FFFFFF
##401EA71.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #401ea7;
/* rgb */ color: rgb(64, 30, 167);
/* oklch */ color: oklch(38.7% 0.198 283.5);
Tailwind
colors: {
  custom: {
    50: '#8360c2',
    500: '#401ea7',
    950: '#000000',
  },
}
SCSS
$custom: #401ea7;
$custom-light: #8360c2;
$custom-dark: #000000;
JSON
{
  "hex": "#401ea7",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 254.891,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38666,
    "c": 0.19809,
    "h": 283.5
  },
  "luminance": 0.04809
}

Semantic roles & 50–950 ramp

primary
#401EA7
secondary
#ACC65B
accent
#EC3BC0
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #401EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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