#401868#401868

#401868 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.132 H 302.1°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#401868
RGBrgb(64, 24, 104)
HSLhsl(270, 63%, 25%)
HSVhsv(270, 77%, 41%)
CMYKcmyk(38.5%, 76.9%, 0%, 59.2%)
CIE-LABlab(18.98, 35.80, -39.08)
CIE-LCHlch(18.98, 52.99, 312.49°)
OKLaboklab(31.76% 0.0699 -0.1114)
OKLCHoklch(31.76% 0.132 302.1)
XYZxyz(4.9391, 2.7427, 13.3632)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401868 #406818
analogous
#181868 #401868 #681868
triadic
#401868 #684018 #186840
tetradic
#401868 #681818 #406818 #186868
square
#401868 #681818 #406818 #186868
split-complementary
#401868 #686818 #186818
monochromatic
#0F0619 #210D36 #401868 #5F239A #7D2FCB

Accessibility & contrast

On white

13.56
#401868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#401868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401868
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401868#FFFFFF#000000##FFFFFF
##4018681.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401868;
/* rgb */ color: rgb(64, 24, 104);
/* oklch */ color: oklch(31.8% 0.132 302.1);
Tailwind
colors: {
  custom: {
    50: '#795994',
    500: '#401868',
    950: '#000000',
  },
}
SCSS
$custom: #401868;
$custom-light: #795994;
$custom-dark: #000000;
JSON
{
  "hex": "#401868",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 270,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31758,
    "c": 0.13152,
    "h": 302.1
  },
  "luminance": 0.02743
}

Semantic roles & 50–950 ramp

primary
#401868
secondary
#6E9E3E
accent
#E64294
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401868

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

Preview Lab → · Contrast checker → · Palette generator →

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