#401988#401988

#401988 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.167 H 291.0°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#401988
RGBrgb(64, 25, 136)
HSLhsl(261, 69%, 32%)
HSVhsv(261, 82%, 53%)
CMYKcmyk(52.9%, 81.6%, 0%, 46.7%)
CIE-LABlab(22.17, 44.11, -54.35)
CIE-LCHlch(22.17, 69.99, 309.06°)
OKLaboklab(34.92% 0.0598 -0.1562)
OKLCHoklch(34.92% 0.167 291)
XYZxyz(6.9046, 3.5625, 23.6116)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401988 #618819
analogous
#192A88 #401988 #781988
triadic
#401988 #884019 #198840
tetradic
#401988 #88192A #618819 #198878
square
#401988 #88192A #618819 #198878
split-complementary
#401988 #887819 #2A8819
monochromatic
#0F0621 #280F54 #401988 #5823BC #7640DC

Accessibility & contrast

On white

12.26
#401988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#401988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401988
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401988#FFFFFF#000000##FFFFFF
##4019881.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#263951
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401988;
/* rgb */ color: rgb(64, 25, 136);
/* oklch */ color: oklch(34.9% 0.167 291.0);
Tailwind
colors: {
  custom: {
    50: '#7e5bac',
    500: '#401988',
    950: '#000000',
  },
}
SCSS
$custom: #401988;
$custom-light: #7e5bac;
$custom-dark: #000000;
JSON
{
  "hex": "#401988",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 261.081,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34917,
    "c": 0.16726,
    "h": 291
  },
  "luminance": 0.03563
}

Semantic roles & 50–950 ramp

primary
#401988
secondary
#91BB41
accent
#EC3CAE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401988

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

Preview Lab → · Contrast checker → · Palette generator →

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