#401689#401689

#401689 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.171 H 291.1°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#401689
RGBrgb(64, 22, 137)
HSLhsl(262, 72%, 31%)
HSVhsv(262, 84%, 54%)
CMYKcmyk(53.3%, 83.9%, 0%, 46.3%)
CIE-LABlab(21.83, 45.65, -55.53)
CIE-LCHlch(21.83, 71.89, 309.43°)
OKLaboklab(34.72% 0.0615 -0.1596)
OKLCHoklch(34.72% 0.171 291.1)
XYZxyz(6.9153, 3.4697, 23.9674)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401689 #5F8916
analogous
#162589 #401689 #791689
triadic
#401689 #894016 #168940
tetradic
#401689 #891625 #5F8916 #168979
square
#401689 #891625 #5F8916 #168979
split-complementary
#401689 #897916 #258916
monochromatic
#0F0520 #270E54 #401689 #591EBE #763ADF

Accessibility & contrast

On white

12.40
#401689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#401689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401689
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401689#FFFFFF#000000##FFFFFF
##4016891.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#263951
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401689;
/* rgb */ color: rgb(64, 22, 137);
/* oklch */ color: oklch(34.7% 0.171 291.1);
Tailwind
colors: {
  custom: {
    50: '#7e5aad',
    500: '#401689',
    950: '#000000',
  },
}
SCSS
$custom: #401689;
$custom-light: #7e5aad;
$custom-dark: #000000;
JSON
{
  "hex": "#401689",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 261.913,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34716,
    "c": 0.17106,
    "h": 291.1
  },
  "luminance": 0.0347
}

Semantic roles & 50–950 ramp

primary
#401689
secondary
#8FBD3E
accent
#EF39AC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401689

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

Preview Lab → · Contrast checker → · Palette generator →

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