#401FB1#401FB1

#401FB1 is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.8% C 0.209 H 281.7°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#401FB1
RGBrgb(64, 31, 177)
HSLhsl(254, 70%, 41%)
HSVhsv(254, 82%, 69%)
CMYKcmyk(63.8%, 82.5%, 0%, 30.6%)
CIE-LABlab(27.42, 53.06, -70.78)
CIE-LCHlch(27.42, 88.46, 306.85°)
OKLaboklab(39.84% 0.0423 -0.2042)
OKLCHoklch(39.84% 0.209 281.7)
XYZxyz(10.5377, 5.2435, 42.0432)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401FB1 #90B11F
analogous
#1F47B1 #401FB1 #891FB1
triadic
#401FB1 #B1401F #1FB140
tetradic
#401FB1 #B11F47 #90B11F #1FB189
square
#401FB1 #B11F47 #90B11F #1FB189
split-complementary
#401FB1 #B1891F #47B11F
monochromatic
#1A0D49 #2D167D #401FB1 #5832DB #8366E4

Accessibility & contrast

On white

10.25
#401FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#401FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401FB1
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401FB1#FFFFFF#000000##FFFFFF
##401FB11.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B5
Deuteranopia (green-blind)
#003BAE
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #401fb1;
/* rgb */ color: rgb(64, 31, 177);
/* oklch */ color: oklch(39.8% 0.209 281.7);
Tailwind
colors: {
  custom: {
    50: '#8461ca',
    500: '#401fb1',
    950: '#000000',
  },
}
SCSS
$custom: #401fb1;
$custom-light: #8461ca;
$custom-dark: #000000;
JSON
{
  "hex": "#401fb1",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 177
  },
  "hsl": {
    "h": 253.562,
    "s": 70.192,
    "l": 40.784
  },
  "oklch": {
    "l": 0.3984,
    "c": 0.20855,
    "h": 281.7
  },
  "luminance": 0.05244
}

Semantic roles & 50–950 ramp

primary
#401FB1
secondary
#B2CA62
accent
#ED3BC5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #401FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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