#401F9B#401F9B

#401F9B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.184 H 285.6°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#401F9B
RGBrgb(64, 31, 155)
HSLhsl(256, 67%, 36%)
HSVhsv(256, 80%, 61%)
CMYKcmyk(58.7%, 80%, 0%, 39.2%)
CIE-LABlab(25.06, 46.76, -61.35)
CIE-LCHlch(25.06, 77.14, 307.32°)
OKLaboklab(37.51% 0.0495 -0.1767)
OKLCHoklch(37.51% 0.184 285.6)
XYZxyz(8.5189, 4.4360, 31.4113)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F9B #7A9B1F
analogous
#1F3C9B #401F9B #7E1F9B
triadic
#401F9B #9B401F #1F9B40
tetradic
#401F9B #9B1F3C #7A9B1F #1F9B7E
square
#401F9B #9B1F3C #7A9B1F #1F9B7E
split-complementary
#401F9B #9B7E1F #3C9B1F
monochromatic
#160B35 #2B1568 #401F9B #5529CE #7B57DD

Accessibility & contrast

On white

11.13
#401F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#401F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F9B
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F9B#FFFFFF#000000##FFFFFF
##401F9B1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#0F445D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401f9b;
/* rgb */ color: rgb(64, 31, 155);
/* oklch */ color: oklch(37.5% 0.184 285.6);
Tailwind
colors: {
  custom: {
    50: '#8060ba',
    500: '#401f9b',
    950: '#000000',
  },
}
SCSS
$custom: #401f9b;
$custom-light: #8060ba;
$custom-dark: #000000;
JSON
{
  "hex": "#401f9b",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 255.968,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37514,
    "c": 0.18353,
    "h": 285.6
  },
  "luminance": 0.04437
}

Semantic roles & 50–950 ramp

primary
#401F9B
secondary
#A4C155
accent
#EA3EBC
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #401F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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