#401F96#401F96

#401F96 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.178 H 286.7°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#401F96
RGBrgb(64, 31, 150)
HSLhsl(257, 66%, 35%)
HSVhsv(257, 79%, 59%)
CMYKcmyk(57.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(24.55, 45.32, -59.13)
CIE-LCHlch(24.55, 74.50, 307.47°)
OKLaboklab(37% 0.051 -0.1702)
OKLCHoklch(37% 0.178 286.7)
XYZxyz(8.1077, 4.2715, 29.2455)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F96 #75961F
analogous
#1F3996 #401F96 #7C1F96
triadic
#401F96 #96401F #1F9640
tetradic
#401F96 #961F39 #75961F #1F967C
square
#401F96 #961F39 #75961F #1F967C
split-complementary
#401F96 #967C1F #39961F
monochromatic
#150A31 #2A1563 #401F96 #5629C9 #7954DC

Accessibility & contrast

On white

11.32
#401F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#401F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F96
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F96#FFFFFF#000000##FFFFFF
##401F961.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003794
Tritanopia (blue-blind)
#17425A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #401f96;
/* rgb */ color: rgb(64, 31, 150);
/* oklch */ color: oklch(37.0% 0.178 286.7);
Tailwind
colors: {
  custom: {
    50: '#7f5fb6',
    500: '#401f96',
    950: '#000000',
  },
}
SCSS
$custom: #401f96;
$custom-light: #7f5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#401f96",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 256.639,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37002,
    "c": 0.17772,
    "h": 286.7
  },
  "luminance": 0.04272
}

Semantic roles & 50–950 ramp

primary
#401F96
secondary
#A1BF52
accent
#E93FBA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401F96

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

Preview Lab → · Contrast checker → · Palette generator →

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