#401F9D#401F9D

#401F9D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.186 H 285.2°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#401F9D
RGBrgb(64, 31, 157)
HSLhsl(256, 67%, 37%)
HSVhsv(256, 80%, 62%)
CMYKcmyk(59.2%, 80.3%, 0%, 38.4%)
CIE-LABlab(25.27, 47.34, -62.23)
CIE-LCHlch(25.27, 78.19, 307.26°)
OKLaboklab(37.72% 0.0488 -0.1793)
OKLCHoklch(37.72% 0.186 285.2)
XYZxyz(8.6883, 4.5037, 32.3032)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F9D #7C9D1F
analogous
#1F3D9D #401F9D #7F1F9D
triadic
#401F9D #9D401F #1F9D40
tetradic
#401F9D #9D1F3D #7C9D1F #1F9D7F
square
#401F9D #9D1F3D #7C9D1F #1F9D7F
split-complementary
#401F9D #9D7F1F #3D9D1F
monochromatic
#160B37 #2B156A #401F9D #5529D0 #7B58DE

Accessibility & contrast

On white

11.05
#401F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#401F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F9D
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F9D#FFFFFF#000000##FFFFFF
##401F9D1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#0A445E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #401f9d;
/* rgb */ color: rgb(64, 31, 157);
/* oklch */ color: oklch(37.7% 0.186 285.2);
Tailwind
colors: {
  custom: {
    50: '#8160bb',
    500: '#401f9d',
    950: '#000000',
  },
}
SCSS
$custom: #401f9d;
$custom-light: #8160bb;
$custom-dark: #000000;
JSON
{
  "hex": "#401f9d",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 255.714,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3772,
    "c": 0.18584,
    "h": 285.2
  },
  "luminance": 0.04504
}

Semantic roles & 50–950 ramp

primary
#401F9D
secondary
#A6C256
accent
#EA3EBD
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #401F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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