#401B89#401B89

#401B89 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.166 H 290.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#401B89
RGBrgb(64, 27, 137)
HSLhsl(260, 67%, 32%)
HSVhsv(260, 80%, 54%)
CMYKcmyk(53.3%, 80.3%, 0%, 46.3%)
CIE-LABlab(22.58, 43.48, -54.29)
CIE-LCHlch(22.58, 69.56, 308.69°)
OKLaboklab(35.24% 0.058 -0.1561)
OKLCHoklch(35.24% 0.166 290.4)
XYZxyz(7.0203, 3.6797, 24.0024)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B89 #64891B
analogous
#1B2D89 #401B89 #771B89
triadic
#401B89 #89401B #1B8940
tetradic
#401B89 #891B2D #64891B #1B8977
square
#401B89 #891B2D #64891B #1B8977
split-complementary
#401B89 #89771B #2D891B
monochromatic
#100723 #281156 #401B89 #5825BC #7744DA

Accessibility & contrast

On white

12.10
#401B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#401B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B89
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B89#FFFFFF#000000##FFFFFF
##401B891.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#253B52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #401b89;
/* rgb */ color: rgb(64, 27, 137);
/* oklch */ color: oklch(35.2% 0.166 290.4);
Tailwind
colors: {
  custom: {
    50: '#7e5cac',
    500: '#401b89',
    950: '#000000',
  },
}
SCSS
$custom: #401b89;
$custom-light: #7e5cac;
$custom-dark: #000000;
JSON
{
  "hex": "#401b89",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 260.182,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35235,
    "c": 0.16649,
    "h": 290.4
  },
  "luminance": 0.0368
}

Semantic roles & 50–950 ramp

primary
#401B89
secondary
#93BC44
accent
#EA3EB0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401B89

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

Preview Lab → · Contrast checker → · Palette generator →

#401B89 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva