#401F8E#401F8E

#401F8E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.168 H 288.5°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#401F8E
RGBrgb(64, 31, 142)
HSLhsl(258, 64%, 34%)
HSVhsv(258, 78%, 56%)
CMYKcmyk(54.9%, 78.2%, 0%, 44.3%)
CIE-LABlab(23.75, 43.00, -55.50)
CIE-LCHlch(23.75, 70.21, 307.77°)
OKLaboklab(36.2% 0.0534 -0.1596)
OKLCHoklch(36.2% 0.168 288.5)
XYZxyz(7.4854, 4.0226, 25.9680)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F8E #6D8E1F
analogous
#1F368E #401F8E #781F8E
triadic
#401F8E #8E401F #1F8E40
tetradic
#401F8E #8E1F36 #6D8E1F #1F8E78
square
#401F8E #8E1F36 #6D8E1F #1F8E78
split-complementary
#401F8E #8E781F #368E1F
monochromatic
#13092A #29145C #401F8E #572AC0 #784FD9

Accessibility & contrast

On white

11.64
#401F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#401F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F8E
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F8E#FFFFFF#000000##FFFFFF
##401F8E1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#213E55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #401f8e;
/* rgb */ color: rgb(64, 31, 142);
/* oklch */ color: oklch(36.2% 0.168 288.5);
Tailwind
colors: {
  custom: {
    50: '#7e5fb0',
    500: '#401f8e',
    950: '#000000',
  },
}
SCSS
$custom: #401f8e;
$custom-light: #7e5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#401f8e",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 257.838,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36198,
    "c": 0.16833,
    "h": 288.5
  },
  "luminance": 0.04023
}

Semantic roles & 50–950 ramp

primary
#401F8E
secondary
#9BBB4D
accent
#E741B6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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