#401C5F#401C5F

#401C5F is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.5% C 0.115 H 305.4°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#401C5F
RGBrgb(64, 28, 95)
HSLhsl(272, 54%, 24%)
HSVhsv(272, 71%, 37%)
CMYKcmyk(32.6%, 70.5%, 0%, 62.7%)
CIE-LABlab(19.00, 31.28, -33.12)
CIE-LCHlch(19.00, 45.56, 313.36°)
OKLaboklab(31.54% 0.0667 -0.0939)
OKLCHoklch(31.54% 0.115 305.4)
XYZxyz(4.5947, 2.7468, 11.1124)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C5F #3B5F1C
analogous
#1F1C5F #401C5F #5F1C5D
triadic
#401C5F #5F401C #1C5F40
tetradic
#401C5F #5F1F1C #3B5F1C #1C5D5F
square
#401C5F #5F1F1C #3B5F1C #1C5D5F
split-complementary
#401C5F #5D5F1C #1C5F1F
monochromatic
#100718 #200E30 #401C5F #602A8E #8038BE

Accessibility & contrast

On white

13.55
#401C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#401C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C5F
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C5F#FFFFFF#000000##FFFFFF
##401C5F1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#092E5E
Tritanopia (blue-blind)
#3B2B3B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401c5f;
/* rgb */ color: rgb(64, 28, 95);
/* oklch */ color: oklch(31.5% 0.115 305.4);
Tailwind
colors: {
  custom: {
    50: '#785b8d',
    500: '#401c5f',
    950: '#000000',
  },
}
SCSS
$custom: #401c5f;
$custom-light: #785b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#401c5f",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 95
  },
  "hsl": {
    "h": 272.239,
    "s": 54.472,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31538,
    "c": 0.1152,
    "h": 305.4
  },
  "luminance": 0.02747
}

Semantic roles & 50–950 ramp

primary
#401C5F
secondary
#689442
accent
#DE4A8E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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