#401F97#401F97

#401F97 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.179 H 286.5°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#401F97
RGBrgb(64, 31, 151)
HSLhsl(257, 66%, 36%)
HSVhsv(257, 79%, 59%)
CMYKcmyk(57.6%, 79.5%, 0%, 40.8%)
CIE-LABlab(24.65, 45.61, -59.58)
CIE-LCHlch(24.65, 75.03, 307.44°)
OKLaboklab(37.1% 0.0507 -0.1715)
OKLCHoklch(37.1% 0.179 286.5)
XYZxyz(8.1886, 4.3039, 29.6714)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F97 #76971F
analogous
#1F3A97 #401F97 #7C1F97
triadic
#401F97 #97401F #1F9740
tetradic
#401F97 #971F3A #76971F #1F977C
square
#401F97 #971F3A #76971F #1F977C
split-complementary
#401F97 #977C1F #3A971F
monochromatic
#150A31 #2A1564 #401F97 #5629CA #7A54DC

Accessibility & contrast

On white

11.29
#401F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#401F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F97
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F97#FFFFFF#000000##FFFFFF
##401F971.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#16425B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401f97;
/* rgb */ color: rgb(64, 31, 151);
/* oklch */ color: oklch(37.1% 0.179 286.5);
Tailwind
colors: {
  custom: {
    50: '#805fb7',
    500: '#401f97',
    950: '#000000',
  },
}
SCSS
$custom: #401f97;
$custom-light: #805fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#401f97",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 256.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37103,
    "c": 0.17889,
    "h": 286.5
  },
  "luminance": 0.04304
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #401F97

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

Preview Lab → · Contrast checker → · Palette generator →

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