#401E56#401E56

#401E56 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.2% C 0.101 H 309.8°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#401E56
RGBrgb(64, 30, 86)
HSLhsl(276, 48%, 23%)
HSVhsv(276, 65%, 34%)
CMYKcmyk(25.6%, 65.1%, 0%, 66.3%)
CIE-LABlab(18.76, 27.76, -27.50)
CIE-LCHlch(18.76, 39.08, 315.26°)
OKLaboklab(31.15% 0.0645 -0.0774)
OKLCHoklch(31.15% 0.101 309.8)
XYZxyz(4.2580, 2.6905, 9.0973)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E56 #34561E
analogous
#241E56 #401E56 #561E50
triadic
#401E56 #56401E #1E5640
tetradic
#401E56 #56241E #34561E #1E5056
square
#401E56 #56241E #34561E #1E5056
split-complementary
#401E56 #50561E #1E5624
monochromatic
#110817 #1E0E29 #401E56 #622E83 #843EB1

Accessibility & contrast

On white

13.65
#401E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#401E56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E56
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E56#FFFFFF#000000##FFFFFF
##401E561.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082C58
Deuteranopia (green-blind)
#172E55
Tritanopia (blue-blind)
#3D2936
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401e56;
/* rgb */ color: rgb(64, 30, 86);
/* oklch */ color: oklch(31.2% 0.101 309.8);
Tailwind
colors: {
  custom: {
    50: '#775c86',
    500: '#401e56',
    950: '#000000',
  },
}
SCSS
$custom: #401e56;
$custom-light: #775c86;
$custom-dark: #000000;
JSON
{
  "hex": "#401e56",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 86
  },
  "hsl": {
    "h": 276.429,
    "s": 48.276,
    "l": 22.745
  },
  "oklch": {
    "l": 0.31153,
    "c": 0.10078,
    "h": 309.8
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#401E56
secondary
#608B45
accent
#D85085
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401E56

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

Preview Lab → · Contrast checker → · Palette generator →

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