#401FB4#401FB4

#401FB4 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.2% C 0.212 H 281.2°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#401FB4
RGBrgb(64, 31, 180)
HSLhsl(253, 71%, 41%)
HSVhsv(253, 83%, 71%)
CMYKcmyk(64.4%, 82.8%, 0%, 29.4%)
CIE-LABlab(27.75, 53.90, -72.03)
CIE-LCHlch(27.75, 89.96, 306.81°)
OKLaboklab(40.17% 0.0413 -0.2078)
OKLCHoklch(40.17% 0.212 281.2)
XYZxyz(10.8400, 5.3644, 43.6354)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401FB4 #93B41F
analogous
#1F48B4 #401FB4 #8B1FB4
triadic
#401FB4 #B4401F #1FB440
tetradic
#401FB4 #B41F48 #93B41F #1FB48B
square
#401FB4 #B41F48 #93B41F #1FB48B
split-complementary
#401FB4 #B48B1F #48B41F
monochromatic
#1B0D4C #2D1680 #401FB4 #5934DC #8468E5

Accessibility & contrast

On white

10.13
#401FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#401FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401FB4
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401FB4#FFFFFF#000000##FFFFFF
##401FB41.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003CB1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #401fb4;
/* rgb */ color: rgb(64, 31, 180);
/* oklch */ color: oklch(40.2% 0.212 281.2);
Tailwind
colors: {
  custom: {
    50: '#8561cc',
    500: '#401fb4',
    950: '#000000',
  },
}
SCSS
$custom: #401fb4;
$custom-light: #8561cc;
$custom-dark: #000000;
JSON
{
  "hex": "#401fb4",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 253.289,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40166,
    "c": 0.2119,
    "h": 281.2
  },
  "luminance": 0.05365
}

Semantic roles & 50–950 ramp

primary
#401FB4
secondary
#B4CB64
accent
#ED3AC6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0514
muted
#7D7A82

Preview Lab

Preview with #401FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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