#401968#401968

#401968 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.130 H 301.9°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#401968
RGBrgb(64, 25, 104)
HSLhsl(270, 61%, 25%)
HSVhsv(270, 76%, 41%)
CMYKcmyk(38.5%, 76%, 0%, 59.2%)
CIE-LABlab(19.16, 35.30, -38.79)
CIE-LCHlch(19.16, 52.44, 312.30°)
OKLaboklab(31.88% 0.0689 -0.1105)
OKLCHoklch(31.88% 0.13 301.9)
XYZxyz(4.9601, 2.7847, 13.3702)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401968 #416819
analogous
#191A68 #401968 #671968
triadic
#401968 #684019 #196840
tetradic
#401968 #68191A #416819 #196867
square
#401968 #68191A #416819 #196867
split-complementary
#401968 #686719 #1A6819
monochromatic
#0F0619 #220D37 #401968 #5E2599 #7D31CB

Accessibility & contrast

On white

13.49
#401968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#401968 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401968
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401968#FFFFFF#000000##FFFFFF
##4019681.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002E66
Tritanopia (blue-blind)
#382C3F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401968;
/* rgb */ color: rgb(64, 25, 104);
/* oklch */ color: oklch(31.9% 0.130 301.9);
Tailwind
colors: {
  custom: {
    50: '#795a94',
    500: '#401968',
    950: '#000000',
  },
}
SCSS
$custom: #401968;
$custom-light: #795a94;
$custom-dark: #000000;
JSON
{
  "hex": "#401968",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 269.62,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31884,
    "c": 0.13024,
    "h": 301.9
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#401968
secondary
#6F9E3F
accent
#E44395
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401968

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

Preview Lab → · Contrast checker → · Palette generator →

#401968 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva