#401D57#401D57

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

Color values

HEX#401D57
RGBrgb(64, 29, 87)
HSLhsl(276, 50%, 23%)
HSVhsv(276, 67%, 34%)
CMYKcmyk(26.4%, 66.7%, 0%, 65.9%)
CIE-LABlab(18.61, 28.60, -28.41)
CIE-LCHlch(18.61, 40.31, 315.19°)
OKLaboklab(31.07% 0.0659 -0.0801)
OKLCHoklch(31.07% 0.104 309.5)
XYZxyz(4.2737, 2.6569, 9.3027)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D57 #34571D
analogous
#231D57 #401D57 #571D51
triadic
#401D57 #57401D #1D5740
tetradic
#401D57 #57231D #34571D #1D5157
square
#401D57 #57231D #34571D #1D5157
split-complementary
#401D57 #51571D #1D5723
monochromatic
#110817 #1E0E29 #401D57 #622C85 #843CB3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##401D57#FFFFFF#000000##FFFFFF
##401D571.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)
#042C59
Deuteranopia (green-blind)
#152E56
Tritanopia (blue-blind)
#3D2837
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401d57;
/* rgb */ color: rgb(64, 29, 87);
/* oklch */ color: oklch(31.1% 0.104 309.5);
Tailwind
colors: {
  custom: {
    50: '#775b87',
    500: '#401d57',
    950: '#000000',
  },
}
SCSS
$custom: #401d57;
$custom-light: #775b87;
$custom-dark: #000000;
JSON
{
  "hex": "#401d57",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 87
  },
  "hsl": {
    "h": 276.207,
    "s": 50,
    "l": 22.745
  },
  "oklch": {
    "l": 0.3107,
    "c": 0.10371,
    "h": 309.5
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#401D57
secondary
#608C44
accent
#DA4E85
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401D57

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

Preview Lab → · Contrast checker → · Palette generator →

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