#401F94#401F94

#401F94 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.175 H 287.1°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#401F94
RGBrgb(64, 31, 148)
HSLhsl(257, 65%, 35%)
HSVhsv(257, 79%, 58%)
CMYKcmyk(56.8%, 79.1%, 0%, 42%)
CIE-LABlab(24.35, 44.74, -58.23)
CIE-LCHlch(24.35, 73.43, 307.54°)
OKLaboklab(36.8% 0.0516 -0.1676)
OKLCHoklch(36.8% 0.175 287.1)
XYZxyz(7.9480, 4.2076, 28.4046)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F94 #73941F
analogous
#1F3994 #401F94 #7A1F94
triadic
#401F94 #94401F #1F9440
tetradic
#401F94 #941F39 #73941F #1F947A
square
#401F94 #941F39 #73941F #1F947A
split-complementary
#401F94 #947A1F #39941F
monochromatic
#140A2F #2A1461 #401F94 #562AC7 #7953DB

Accessibility & contrast

On white

11.40
#401F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401F94
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F94#FFFFFF#000000##FFFFFF
##401F941.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D97
Deuteranopia (green-blind)
#003792
Tritanopia (blue-blind)
#1A4159
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #401f94;
/* rgb */ color: rgb(64, 31, 148);
/* oklch */ color: oklch(36.8% 0.175 287.1);
Tailwind
colors: {
  custom: {
    50: '#7f5fb5',
    500: '#401f94',
    950: '#000000',
  },
}
SCSS
$custom: #401f94;
$custom-light: #7f5fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#401f94",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 256.923,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36799,
    "c": 0.17538,
    "h": 287.1
  },
  "luminance": 0.04208
}

Semantic roles & 50–950 ramp

primary
#401F94
secondary
#9FBE51
accent
#E83FB9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401F94

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

Preview Lab → · Contrast checker → · Palette generator →

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