#401FB2#401FB2

#401FB2 is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 39.9% C 0.210 H 281.5°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#401FB2
RGBrgb(64, 31, 178)
HSLhsl(253, 70%, 41%)
HSVhsv(253, 83%, 70%)
CMYKcmyk(64%, 82.6%, 0%, 30.2%)
CIE-LABlab(27.53, 53.34, -71.20)
CIE-LCHlch(27.53, 88.96, 306.84°)
OKLaboklab(39.95% 0.042 -0.2054)
OKLCHoklch(39.95% 0.21 281.5)
XYZxyz(10.6377, 5.2835, 42.5701)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401FB2 #91B21F
analogous
#1F48B2 #401FB2 #891FB2
triadic
#401FB2 #B2401F #1FB240
tetradic
#401FB2 #B21F48 #91B21F #1FB289
square
#401FB2 #B21F48 #91B21F #1FB289
split-complementary
#401FB2 #B2891F #48B21F
monochromatic
#1B0D4A #2D167E #401FB2 #5933DB #8367E5

Accessibility & contrast

On white

10.21
#401FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#401FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401FB2
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401FB2#FFFFFF#000000##FFFFFF
##401FB21.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B6
Deuteranopia (green-blind)
#003CAF
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #401fb2;
/* rgb */ color: rgb(64, 31, 178);
/* oklch */ color: oklch(39.9% 0.210 281.5);
Tailwind
colors: {
  custom: {
    50: '#8561ca',
    500: '#401fb2',
    950: '#000000',
  },
}
SCSS
$custom: #401fb2;
$custom-light: #8561ca;
$custom-dark: #000000;
JSON
{
  "hex": "#401fb2",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 178
  },
  "hsl": {
    "h": 253.469,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39949,
    "c": 0.20967,
    "h": 281.5
  },
  "luminance": 0.05284
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #401FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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