#401F99#401F99

#401F99 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.181 H 286.0°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#401F99
RGBrgb(64, 31, 153)
HSLhsl(256, 66%, 36%)
HSVhsv(256, 80%, 60%)
CMYKcmyk(58.2%, 79.7%, 0%, 40%)
CIE-LABlab(24.86, 46.19, -60.47)
CIE-LCHlch(24.86, 76.09, 307.37°)
OKLaboklab(37.31% 0.0501 -0.1741)
OKLCHoklch(37.31% 0.181 286)
XYZxyz(8.3524, 4.3694, 30.5341)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F99 #78991F
analogous
#1F3B99 #401F99 #7D1F99
triadic
#401F99 #99401F #1F9940
tetradic
#401F99 #991F3B #78991F #1F997D
square
#401F99 #991F3B #78991F #1F997D
split-complementary
#401F99 #997D1F #3B991F
monochromatic
#150A33 #2B1566 #401F99 #5529CC #7A56DD

Accessibility & contrast

On white

11.21
#401F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#401F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F99
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F99#FFFFFF#000000##FFFFFF
##401F991.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#13435C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401f99;
/* rgb */ color: rgb(64, 31, 153);
/* oklch */ color: oklch(37.3% 0.181 286.0);
Tailwind
colors: {
  custom: {
    50: '#805fb8',
    500: '#401f99',
    950: '#000000',
  },
}
SCSS
$custom: #401f99;
$custom-light: #805fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#401f99",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 256.23,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37308,
    "c": 0.18121,
    "h": 286
  },
  "luminance": 0.0437
}

Semantic roles & 50–950 ramp

primary
#401F99
secondary
#A3C054
accent
#E93FBB
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #401F99

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

Preview Lab → · Contrast checker → · Palette generator →

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