#401A5F#401A5F

#401A5F is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.3% C 0.118 H 305.9°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#401A5F
RGBrgb(64, 26, 95)
HSLhsl(273, 57%, 24%)
HSVhsv(273, 73%, 37%)
CMYKcmyk(32.6%, 72.6%, 0%, 62.7%)
CIE-LABlab(18.61, 32.37, -33.76)
CIE-LCHlch(18.61, 46.77, 313.80°)
OKLaboklab(31.26% 0.0692 -0.0958)
OKLCHoklch(31.26% 0.118 305.9)
XYZxyz(4.5489, 2.6550, 11.0971)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A5F #395F1A
analogous
#1D1A5F #401A5F #5F1A5B
triadic
#401A5F #5F401A #1A5F40
tetradic
#401A5F #5F1D1A #395F1A #1A5B5F
square
#401A5F #5F1D1A #395F1A #1A5B5F
split-complementary
#401A5F #5B5F1A #1A5F1D
monochromatic
#100718 #200D2F #401A5F #60278F #8134BF

Accessibility & contrast

On white

13.72
#401A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401A5F
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A5F#FFFFFF#000000##FFFFFF
##401A5F1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#052D5E
Tritanopia (blue-blind)
#3B293A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401a5f;
/* rgb */ color: rgb(64, 26, 95);
/* oklch */ color: oklch(31.3% 0.118 305.9);
Tailwind
colors: {
  custom: {
    50: '#785a8d',
    500: '#401a5f',
    950: '#000000',
  },
}
SCSS
$custom: #401a5f;
$custom-light: #785a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#401a5f",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 95
  },
  "hsl": {
    "h": 273.043,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31256,
    "c": 0.11816,
    "h": 305.9
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

primary
#401A5F
secondary
#669540
accent
#E0488C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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