#401774#401774

#401774 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.147 H 297.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#401774
RGBrgb(64, 23, 116)
HSLhsl(266, 67%, 27%)
HSVhsv(266, 80%, 45%)
CMYKcmyk(44.8%, 80.2%, 0%, 54.5%)
CIE-LABlab(19.90, 39.51, -45.37)
CIE-LCHlch(19.90, 60.16, 311.05°)
OKLaboklab(32.74% 0.0678 -0.1299)
OKLCHoklch(32.74% 0.147 297.6)
XYZxyz(5.5723, 2.9636, 16.7981)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401774 #4B7417
analogous
#171C74 #401774 #6F1774
triadic
#401774 #744017 #177440
tetradic
#401774 #74171C #4B7417 #17746F
square
#401774 #74171C #4B7417 #17746F
split-complementary
#401774 #746F17 #1C7417
monochromatic
#0E051A #240D41 #401774 #5C21A7 #7930D6

Accessibility & contrast

On white

13.18
#401774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#401774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401774
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401774#FFFFFF#000000##FFFFFF
##4017741.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#323045
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401774;
/* rgb */ color: rgb(64, 23, 116);
/* oklch */ color: oklch(32.7% 0.147 297.6);
Tailwind
colors: {
  custom: {
    50: '#7b599d',
    500: '#401774',
    950: '#000000',
  },
}
SCSS
$custom: #401774;
$custom-light: #7b599d;
$custom-dark: #000000;
JSON
{
  "hex": "#401774",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 266.452,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32738,
    "c": 0.14651,
    "h": 297.6
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#401774
secondary
#7AA93D
accent
#EA3E9E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401774

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

Preview Lab → · Contrast checker → · Palette generator →

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