#401A68#401A68

#401A68 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.129 H 301.7°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#401A68
RGBrgb(64, 26, 104)
HSLhsl(269, 60%, 25%)
HSVhsv(269, 75%, 41%)
CMYKcmyk(38.5%, 75%, 0%, 59.2%)
CIE-LABlab(19.34, 34.78, -38.49)
CIE-LCHlch(19.34, 51.88, 312.10°)
OKLaboklab(32.01% 0.0678 -0.1097)
OKLCHoklch(32.01% 0.129 301.7)
XYZxyz(4.9818, 2.8282, 13.3775)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A68 #42681A
analogous
#1A1B68 #401A68 #671A68
triadic
#401A68 #68401A #1A6840
tetradic
#401A68 #681A1B #42681A #1A6867
square
#401A68 #681A1B #42681A #1A6867
split-complementary
#401A68 #68671A #1B681A
monochromatic
#0F0618 #220E37 #401A68 #5E2699 #7C32CA

Accessibility & contrast

On white

13.41
#401A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401A68
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A68#FFFFFF#000000##FFFFFF
##401A681.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002E66
Tritanopia (blue-blind)
#372D3F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401a68;
/* rgb */ color: rgb(64, 26, 104);
/* oklch */ color: oklch(32.0% 0.129 301.7);
Tailwind
colors: {
  custom: {
    50: '#795a94',
    500: '#401a68',
    950: '#000000',
  },
}
SCSS
$custom: #401a68;
$custom-light: #795a94;
$custom-dark: #000000;
JSON
{
  "hex": "#401a68",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 104
  },
  "hsl": {
    "h": 269.231,
    "s": 60,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32013,
    "c": 0.12892,
    "h": 301.7
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#401A68
secondary
#709D40
accent
#E34596
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401A68

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

Preview Lab → · Contrast checker → · Palette generator →

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