#401794#401794

#401794 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 36.0% C 0.182 H 288.1°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#401794
RGBrgb(64, 23, 148)
HSLhsl(260, 73%, 34%)
HSVhsv(260, 84%, 58%)
CMYKcmyk(56.8%, 84.5%, 0%, 42%)
CIE-LABlab(23.14, 48.26, -60.22)
CIE-LCHlch(23.14, 77.17, 308.71°)
OKLaboklab(35.96% 0.0568 -0.1733)
OKLCHoklch(35.96% 0.182 288.1)
XYZxyz(7.7645, 3.8405, 28.3434)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401794 #6B9417
analogous
#172C94 #401794 #7E1794
triadic
#401794 #944017 #179440
tetradic
#401794 #94172C #6B9417 #17947E
square
#401794 #94172C #6B9417 #17947E
split-complementary
#401794 #947E17 #2C9417
monochromatic
#12072A #290F5F #401794 #571FC9 #7744E2

Accessibility & contrast

On white

11.88
#401794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#401794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401794
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401794#FFFFFF#000000##FFFFFF
##4017941.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#1B3E57
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401794;
/* rgb */ color: rgb(64, 23, 148);
/* oklch */ color: oklch(36.0% 0.182 288.1);
Tailwind
colors: {
  custom: {
    50: '#805bb5',
    500: '#401794',
    950: '#000000',
  },
}
SCSS
$custom: #401794;
$custom-light: #805bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#401794",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 259.68,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35961,
    "c": 0.18242,
    "h": 288.1
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

primary
#401794
secondary
#99C344
accent
#F038B4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401794

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

Preview Lab → · Contrast checker → · Palette generator →

#401794 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva