#401C65#401C65

#401C65 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.0% C 0.123 H 302.6°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#401C65
RGBrgb(64, 28, 101)
HSLhsl(270, 57%, 25%)
HSVhsv(270, 72%, 40%)
CMYKcmyk(36.6%, 72.3%, 0%, 60.4%)
CIE-LABlab(19.47, 32.90, -36.31)
CIE-LCHlch(19.47, 49.00, 312.18°)
OKLaboklab(32.03% 0.066 -0.1033)
OKLCHoklch(32.03% 0.123 302.6)
XYZxyz(4.8780, 2.8601, 12.6045)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C65 #41651C
analogous
#1C1D65 #401C65 #641C65
triadic
#401C65 #65401C #1C6540
tetradic
#401C65 #651C1D #41651C #1C6564
square
#401C65 #651C1D #41651C #1C6564
split-complementary
#401C65 #65641C #1D651C
monochromatic
#0F0718 #220F35 #401C65 #5E2995 #7D37C5

Accessibility & contrast

On white

13.36
#401C65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#401C65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C65
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C65#FFFFFF#000000##FFFFFF
##401C651.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F67
Deuteranopia (green-blind)
#002F63
Tritanopia (blue-blind)
#382D3E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401c65;
/* rgb */ color: rgb(64, 28, 101);
/* oklch */ color: oklch(32.0% 0.123 302.6);
Tailwind
colors: {
  custom: {
    50: '#785b91',
    500: '#401c65',
    950: '#000000',
  },
}
SCSS
$custom: #401c65;
$custom-light: #785b91;
$custom-dark: #000000;
JSON
{
  "hex": "#401c65",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 101
  },
  "hsl": {
    "h": 269.589,
    "s": 56.589,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32029,
    "c": 0.12254,
    "h": 302.6
  },
  "luminance": 0.0286
}

Semantic roles & 50–950 ramp

primary
#401C65
secondary
#6F9A43
accent
#E04895
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401C65

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

Preview Lab → · Contrast checker → · Palette generator →

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