#401F93#401F93

#401F93 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.174 H 287.3°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#401F93
RGBrgb(64, 31, 147)
HSLhsl(257, 65%, 35%)
HSVhsv(257, 79%, 58%)
CMYKcmyk(56.5%, 78.9%, 0%, 42.4%)
CIE-LABlab(24.25, 44.45, -57.78)
CIE-LCHlch(24.25, 72.90, 307.57°)
OKLaboklab(36.7% 0.0519 -0.1663)
OKLCHoklch(36.7% 0.174 287.3)
XYZxyz(7.8692, 4.1761, 27.9895)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F93 #72931F
analogous
#1F3893 #401F93 #7A1F93
triadic
#401F93 #93401F #1F9340
tetradic
#401F93 #931F38 #72931F #1F937A
square
#401F93 #931F38 #72931F #1F937A
split-complementary
#401F93 #937A1F #38931F
monochromatic
#140A2E #2A1460 #401F93 #562AC6 #7952DA

Accessibility & contrast

On white

11.44
#401F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#401F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F93
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F93#FFFFFF#000000##FFFFFF
##401F931.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003691
Tritanopia (blue-blind)
#1B4058
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #401f93;
/* rgb */ color: rgb(64, 31, 147);
/* oklch */ color: oklch(36.7% 0.174 287.3);
Tailwind
colors: {
  custom: {
    50: '#7f5fb4',
    500: '#401f93',
    950: '#000000',
  },
}
SCSS
$custom: #401f93;
$custom-light: #7f5fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#401f93",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 257.069,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36698,
    "c": 0.17421,
    "h": 287.3
  },
  "luminance": 0.04177
}

Semantic roles & 50–950 ramp

primary
#401F93
secondary
#9FBE50
accent
#E840B8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401F93

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

Preview Lab → · Contrast checker → · Palette generator →

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