#401E6F#401E6F

#401E6F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.132 H 298.0°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#401E6F
RGBrgb(64, 30, 111)
HSLhsl(265, 57%, 28%)
HSVhsv(265, 73%, 44%)
CMYKcmyk(42.3%, 73%, 0%, 56.5%)
CIE-LABlab(20.70, 34.60, -40.84)
CIE-LCHlch(20.70, 53.53, 310.27°)
OKLaboklab(33.16% 0.062 -0.1166)
OKLCHoklch(33.16% 0.132 298)
XYZxyz(5.4471, 3.1661, 15.3600)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E6F #4D6F1E
analogous
#1E256F #401E6F #681E6F
triadic
#401E6F #6F401E #1E6F40
tetradic
#401E6F #6F1E25 #4D6F1E #1E6F68
square
#401E6F #6F1E25 #4D6F1E #1E6F68
split-complementary
#401E6F #6F681E #256F1E
monochromatic
#0E0718 #24113F #401E6F #5C2B9F #783DCB

Accessibility & contrast

On white

12.86
#401E6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#401E6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E6F
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E6F#FFFFFF#000000##FFFFFF
##401E6F1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#00316D
Tritanopia (blue-blind)
#343244
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401e6f;
/* rgb */ color: rgb(64, 30, 111);
/* oklch */ color: oklch(33.2% 0.132 298.0);
Tailwind
colors: {
  custom: {
    50: '#795d99',
    500: '#401e6f',
    950: '#000000',
  },
}
SCSS
$custom: #401e6f;
$custom-light: #795d99;
$custom-dark: #000000;
JSON
{
  "hex": "#401e6f",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 111
  },
  "hsl": {
    "h": 265.185,
    "s": 57.447,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33164,
    "c": 0.13206,
    "h": 298
  },
  "luminance": 0.03166
}

Semantic roles & 50–950 ramp

primary
#401E6F
secondary
#7CA346
accent
#E147A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401E6F

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

Preview Lab → · Contrast checker → · Palette generator →

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