#401687#401687

#401687 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.169 H 291.6°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#401687
RGBrgb(64, 22, 135)
HSLhsl(262, 72%, 31%)
HSVhsv(262, 84%, 53%)
CMYKcmyk(52.6%, 83.7%, 0%, 47.1%)
CIE-LABlab(21.63, 45.11, -54.61)
CIE-LCHlch(21.63, 70.84, 309.56°)
OKLaboklab(34.51% 0.0623 -0.1569)
OKLCHoklch(34.51% 0.169 291.6)
XYZxyz(6.7732, 3.4128, 23.2188)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401687 #5D8716
analogous
#162487 #401687 #781687
triadic
#401687 #874016 #168740
tetradic
#401687 #871624 #5D8716 #168778
square
#401687 #871624 #5D8716 #168778
split-complementary
#401687 #877816 #248716
monochromatic
#0E051E #270D52 #401687 #591FBC #7639DF

Accessibility & contrast

On white

12.48
#401687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#401687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401687
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401687#FFFFFF#000000##FFFFFF
##4016871.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#273850
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401687;
/* rgb */ color: rgb(64, 22, 135);
/* oklch */ color: oklch(34.5% 0.169 291.6);
Tailwind
colors: {
  custom: {
    50: '#7e5aab',
    500: '#401687',
    950: '#000000',
  },
}
SCSS
$custom: #401687;
$custom-light: #7e5aab;
$custom-dark: #000000;
JSON
{
  "hex": "#401687",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 262.301,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3451,
    "c": 0.16884,
    "h": 291.6
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#401687
secondary
#8CBB3E
accent
#EF39AB
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401687

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

Preview Lab → · Contrast checker → · Palette generator →

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