#401D64#401D64

#401D64 is a dark, moderate violet. Relative luminance 0.029; OKLCH L 32.1% C 0.120 H 302.8°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#401D64
RGBrgb(64, 29, 100)
HSLhsl(270, 55%, 25%)
HSVhsv(270, 71%, 39%)
CMYKcmyk(36%, 71%, 0%, 60.8%)
CIE-LABlab(19.59, 32.08, -35.46)
CIE-LCHlch(19.59, 47.82, 312.13°)
OKLaboklab(32.09% 0.0649 -0.1008)
OKLCHoklch(32.09% 0.12 302.8)
XYZxyz(4.8534, 2.8888, 12.3560)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D64 #41641D
analogous
#1D1E64 #401D64 #631D64
triadic
#401D64 #64401D #1D6440
tetradic
#401D64 #641D1E #41641D #1D6463
square
#401D64 #641D1E #41641D #1D6463
split-complementary
#401D64 #64631D #1E641D
monochromatic
#0F0718 #220F35 #401D64 #5E2B93 #7D39C3

Accessibility & contrast

On white

13.31
#401D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#401D64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D64
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D64#FFFFFF#000000##FFFFFF
##401D641.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F66
Deuteranopia (green-blind)
#012F62
Tritanopia (blue-blind)
#392D3E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401d64;
/* rgb */ color: rgb(64, 29, 100);
/* oklch */ color: oklch(32.1% 0.120 302.8);
Tailwind
colors: {
  custom: {
    50: '#785c91',
    500: '#401d64',
    950: '#000000',
  },
}
SCSS
$custom: #401d64;
$custom-light: #785c91;
$custom-dark: #000000;
JSON
{
  "hex": "#401d64",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 100
  },
  "hsl": {
    "h": 269.577,
    "s": 55.039,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32089,
    "c": 0.11987,
    "h": 302.8
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#401D64
secondary
#6F9944
accent
#DE4995
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040D
muted
#7B797D

Preview Lab

Preview with #401D64

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

Preview Lab → · Contrast checker → · Palette generator →

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