#401E54#401E54

#401E54 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.0% C 0.098 H 311.0°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#401E54
RGBrgb(64, 30, 84)
HSLhsl(278, 47%, 22%)
HSVhsv(278, 64%, 33%)
CMYKcmyk(23.8%, 64.3%, 0%, 67.1%)
CIE-LABlab(18.62, 27.24, -26.38)
CIE-LCHlch(18.62, 37.92, 315.92°)
OKLaboklab(31.01% 0.0645 -0.0741)
OKLCHoklch(31.01% 0.098 311)
XYZxyz(4.1786, 2.6587, 8.6788)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E54 #32541E
analogous
#251E54 #401E54 #541E4D
triadic
#401E54 #54401E #1E5440
tetradic
#401E54 #54251E #32541E #1E4D54
square
#401E54 #54251E #32541E #1E4D54
split-complementary
#401E54 #4D541E #1E5425
monochromatic
#110817 #1E0E27 #401E54 #622E81 #853EAE

Accessibility & contrast

On white

13.71
#401E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#401E54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E54
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E54#FFFFFF#000000##FFFFFF
##401E541.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2C56
Deuteranopia (green-blind)
#192E53
Tritanopia (blue-blind)
#3E2835
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401e54;
/* rgb */ color: rgb(64, 30, 84);
/* oklch */ color: oklch(31.0% 0.098 311.0);
Tailwind
colors: {
  custom: {
    50: '#775c84',
    500: '#401e54',
    950: '#000000',
  },
}
SCSS
$custom: #401e54;
$custom-light: #775c84;
$custom-dark: #000000;
JSON
{
  "hex": "#401e54",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 84
  },
  "hsl": {
    "h": 277.778,
    "s": 47.368,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31009,
    "c": 0.09826,
    "h": 311
  },
  "luminance": 0.02659
}

Semantic roles & 50–950 ramp

primary
#401E54
secondary
#5E8945
accent
#D75183
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401E54

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

Preview Lab → · Contrast checker → · Palette generator →

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