#401E57#401E57

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

Color values

HEX#401E57
RGBrgb(64, 30, 87)
HSLhsl(276, 49%, 23%)
HSVhsv(276, 66%, 34%)
CMYKcmyk(26.4%, 65.5%, 0%, 65.9%)
CIE-LABlab(18.83, 28.02, -28.06)
CIE-LCHlch(18.83, 39.66, 314.95°)
OKLaboklab(31.23% 0.0645 -0.0791)
OKLCHoklch(31.23% 0.102 309.2)
XYZxyz(4.2986, 2.7067, 9.3110)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E57 #35571E
analogous
#231E57 #401E57 #571E51
triadic
#401E57 #57401E #1E5740
tetradic
#401E57 #57231E #35571E #1E5157
square
#401E57 #57231E #35571E #1E5157
split-complementary
#401E57 #51571E #1E5723
monochromatic
#110817 #1F0E29 #401E57 #612E85 #833DB2

Accessibility & contrast

On white

13.62
#401E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401E57
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E57#FFFFFF#000000##FFFFFF
##401E571.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062C59
Deuteranopia (green-blind)
#162E56
Tritanopia (blue-blind)
#3D2937
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401e57;
/* rgb */ color: rgb(64, 30, 87);
/* oklch */ color: oklch(31.2% 0.102 309.2);
Tailwind
colors: {
  custom: {
    50: '#775c87',
    500: '#401e57',
    950: '#000000',
  },
}
SCSS
$custom: #401e57;
$custom-light: #775c87;
$custom-dark: #000000;
JSON
{
  "hex": "#401e57",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 87
  },
  "hsl": {
    "h": 275.789,
    "s": 48.718,
    "l": 22.941
  },
  "oklch": {
    "l": 0.31226,
    "c": 0.10203,
    "h": 309.2
  },
  "luminance": 0.02707
}

Semantic roles & 50–950 ramp

primary
#401E57
secondary
#628C45
accent
#D85087
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401E57

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

Preview Lab → · Contrast checker → · Palette generator →

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