#401989#401989

#401989 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.168 H 290.7°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#401989
RGBrgb(64, 25, 137)
HSLhsl(261, 69%, 32%)
HSVhsv(261, 82%, 54%)
CMYKcmyk(53.3%, 81.8%, 0%, 46.3%)
CIE-LABlab(22.27, 44.38, -54.81)
CIE-LCHlch(22.27, 70.53, 309.00°)
OKLaboklab(35.02% 0.0595 -0.1575)
OKLCHoklch(35.02% 0.168 290.7)
XYZxyz(6.9760, 3.5911, 23.9876)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401989 #628919
analogous
#192A89 #401989 #781989
triadic
#401989 #894019 #198940
tetradic
#401989 #89192A #628919 #198978
square
#401989 #89192A #628919 #198978
split-complementary
#401989 #897819 #2A8919
monochromatic
#100621 #281055 #401989 #5822BD #7740DC

Accessibility & contrast

On white

12.22
#401989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#401989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401989
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401989#FFFFFF#000000##FFFFFF
##4019891.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#253A51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401989;
/* rgb */ color: rgb(64, 25, 137);
/* oklch */ color: oklch(35.0% 0.168 290.7);
Tailwind
colors: {
  custom: {
    50: '#7e5bac',
    500: '#401989',
    950: '#000000',
  },
}
SCSS
$custom: #401989;
$custom-light: #7e5bac;
$custom-dark: #000000;
JSON
{
  "hex": "#401989",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 260.893,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35018,
    "c": 0.1684,
    "h": 290.7
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#401989
secondary
#92BC41
accent
#EC3CAF
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401989

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

Preview Lab → · Contrast checker → · Palette generator →

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