#401E6D#401E6D

#401E6D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.130 H 298.7°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#401E6D
RGBrgb(64, 30, 109)
HSLhsl(266, 57%, 27%)
HSVhsv(266, 72%, 43%)
CMYKcmyk(41.3%, 72.5%, 0%, 57.3%)
CIE-LABlab(20.53, 34.03, -39.82)
CIE-LCHlch(20.53, 52.38, 310.52°)
OKLaboklab(32.99% 0.0623 -0.1136)
OKLCHoklch(32.99% 0.13 298.7)
XYZxyz(5.3382, 3.1226, 14.7865)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E6D #4B6D1E
analogous
#1E236D #401E6D #681E6D
triadic
#401E6D #6D401E #1E6D40
tetradic
#401E6D #6D1E23 #4B6D1E #1E6D68
square
#401E6D #6D1E23 #4B6D1E #1E6D68
split-complementary
#401E6D #6D681E #236D1E
monochromatic
#0E0718 #24113D #401E6D #5C2B9D #793CC9

Accessibility & contrast

On white

12.93
#401E6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#401E6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E6D
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E6D#FFFFFF#000000##FFFFFF
##401E6D1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#00316B
Tritanopia (blue-blind)
#353143
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401e6d;
/* rgb */ color: rgb(64, 30, 109);
/* oklch */ color: oklch(33.0% 0.130 298.7);
Tailwind
colors: {
  custom: {
    50: '#795d97',
    500: '#401e6d',
    950: '#000000',
  },
}
SCSS
$custom: #401e6d;
$custom-light: #795d97;
$custom-dark: #000000;
JSON
{
  "hex": "#401e6d",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 109
  },
  "hsl": {
    "h": 265.823,
    "s": 56.835,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3299,
    "c": 0.12959,
    "h": 298.7
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#401E6D
secondary
#7AA145
accent
#E0489F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #401E6D

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

Preview Lab → · Contrast checker → · Palette generator →

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