#401F95#401F95

#401F95 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.177 H 286.9°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#401F95
RGBrgb(64, 31, 149)
HSLhsl(257, 66%, 35%)
HSVhsv(257, 79%, 58%)
CMYKcmyk(57%, 79.2%, 0%, 41.6%)
CIE-LABlab(24.45, 45.03, -58.68)
CIE-LCHlch(24.45, 73.97, 307.50°)
OKLaboklab(36.9% 0.0513 -0.1689)
OKLCHoklch(36.9% 0.177 286.9)
XYZxyz(8.0275, 4.2394, 28.8232)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F95 #74951F
analogous
#1F3995 #401F95 #7B1F95
triadic
#401F95 #95401F #1F9540
tetradic
#401F95 #951F39 #74951F #1F957B
square
#401F95 #951F39 #74951F #1F957B
split-complementary
#401F95 #957B1F #39951F
monochromatic
#140A30 #2A1462 #401F95 #562AC8 #7953DB

Accessibility & contrast

On white

11.36
#401F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401F95
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F95#FFFFFF#000000##FFFFFF
##401F951.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003793
Tritanopia (blue-blind)
#194159
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #401f95;
/* rgb */ color: rgb(64, 31, 149);
/* oklch */ color: oklch(36.9% 0.177 286.9);
Tailwind
colors: {
  custom: {
    50: '#7f5fb5',
    500: '#401f95',
    950: '#000000',
  },
}
SCSS
$custom: #401f95;
$custom-light: #7f5fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#401f95",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 256.78,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.369,
    "c": 0.17656,
    "h": 286.9
  },
  "luminance": 0.0424
}

Semantic roles & 50–950 ramp

primary
#401F95
secondary
#A0BF51
accent
#E93FB9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401F95

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

Preview Lab → · Contrast checker → · Palette generator →

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