#401F90#401F90

#401F90 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.171 H 288.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#401F90
RGBrgb(64, 31, 144)
HSLhsl(258, 65%, 34%)
HSVhsv(258, 78%, 56%)
CMYKcmyk(55.6%, 78.5%, 0%, 43.5%)
CIE-LABlab(23.94, 43.58, -56.42)
CIE-LCHlch(23.94, 71.29, 307.69°)
OKLaboklab(36.4% 0.0528 -0.1623)
OKLCHoklch(36.4% 0.171 288)
XYZxyz(7.6369, 4.0832, 26.7659)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F90 #6F901F
analogous
#1F3790 #401F90 #791F90
triadic
#401F90 #90401F #1F9040
tetradic
#401F90 #901F37 #6F901F #1F9079
square
#401F90 #901F37 #6F901F #1F9079
split-complementary
#401F90 #90791F #37901F
monochromatic
#13092B #2A145E #401F90 #562AC2 #7850D9

Accessibility & contrast

On white

11.56
#401F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#401F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F90
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F90#FFFFFF#000000##FFFFFF
##401F901.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#00368E
Tritanopia (blue-blind)
#1F3F57
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #401f90;
/* rgb */ color: rgb(64, 31, 144);
/* oklch */ color: oklch(36.4% 0.171 288.0);
Tailwind
colors: {
  custom: {
    50: '#7e5fb2',
    500: '#401f90',
    950: '#000000',
  },
}
SCSS
$custom: #401f90;
$custom-light: #7e5fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#401f90",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 257.522,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36397,
    "c": 0.17069,
    "h": 288
  },
  "luminance": 0.04084
}

Semantic roles & 50–950 ramp

primary
#401F90
secondary
#9CBC4E
accent
#E840B7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401F90

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

Preview Lab → · Contrast checker → · Palette generator →

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