#401E53#401E53

#401E53 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.9% C 0.097 H 311.6°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#401E53
RGBrgb(64, 30, 83)
HSLhsl(278, 47%, 22%)
HSVhsv(278, 64%, 33%)
CMYKcmyk(22.9%, 63.9%, 0%, 67.5%)
CIE-LABlab(18.55, 26.98, -25.81)
CIE-LCHlch(18.55, 37.34, 316.26°)
OKLaboklab(30.94% 0.0645 -0.0725)
OKLCHoklch(30.94% 0.097 311.6)
XYZxyz(4.1397, 2.6432, 8.4740)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E53 #31531E
analogous
#261E53 #401E53 #531E4C
triadic
#401E53 #53401E #1E5340
tetradic
#401E53 #53261E #31531E #1E4C53
square
#401E53 #53261E #31531E #1E4C53
split-complementary
#401E53 #4C531E #1E5326
monochromatic
#110816 #1D0E26 #401E53 #632E80 #853EAD

Accessibility & contrast

On white

13.74
#401E53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401E53
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E53#FFFFFF#000000##FFFFFF
##401E531.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2B55
Deuteranopia (green-blind)
#1A2E52
Tritanopia (blue-blind)
#3E2835
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401e53;
/* rgb */ color: rgb(64, 30, 83);
/* oklch */ color: oklch(30.9% 0.097 311.6);
Tailwind
colors: {
  custom: {
    50: '#775c84',
    500: '#401e53',
    950: '#000000',
  },
}
SCSS
$custom: #401e53;
$custom-light: #775c84;
$custom-dark: #000000;
JSON
{
  "hex": "#401e53",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 83
  },
  "hsl": {
    "h": 278.491,
    "s": 46.903,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30938,
    "c": 0.097,
    "h": 311.6
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#401E53
secondary
#5D8845
accent
#D75181
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401E53

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

Preview Lab → · Contrast checker → · Palette generator →

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