#401CA5#401CA5

#401CA5 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.3% C 0.197 H 284.0°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#401CA5
RGBrgb(64, 28, 165)
HSLhsl(256, 71%, 38%)
HSVhsv(256, 83%, 65%)
CMYKcmyk(61.2%, 83%, 0%, 35.3%)
CIE-LABlab(25.67, 50.93, -66.44)
CIE-LCHlch(25.67, 83.72, 307.47°)
OKLaboklab(38.25% 0.0479 -0.1915)
OKLCHoklch(38.25% 0.197 284)
XYZxyz(9.3190, 4.6365, 35.9939)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401CA5 #81A51C
analogous
#1C3DA5 #401CA5 #841CA5
triadic
#401CA5 #A5401C #1CA540
tetradic
#401CA5 #A51C3D #81A51C #1CA584
square
#401CA5 #A51C3D #81A51C #1CA584
split-complementary
#401CA5 #A5841C #3DA51C
monochromatic
#170A3C #2C1371 #401CA5 #5425D9 #7D59E3

Accessibility & contrast

On white

10.90
#401CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#401CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401CA5
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401CA5#FFFFFF#000000##FFFFFF
##401CA51.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004762
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #401ca5;
/* rgb */ color: rgb(64, 28, 165);
/* oklch */ color: oklch(38.3% 0.197 284.0);
Tailwind
colors: {
  custom: {
    50: '#825fc1',
    500: '#401ca5',
    950: '#000000',
  },
}
SCSS
$custom: #401ca5;
$custom-light: #825fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#401ca5",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 165
  },
  "hsl": {
    "h": 255.766,
    "s": 70.984,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38252,
    "c": 0.19743,
    "h": 284
  },
  "luminance": 0.04637
}

Semantic roles & 50–950 ramp

primary
#401CA5
secondary
#A9C656
accent
#EE3ABF
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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