#401B8E#401B8E

#401B8E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.172 H 289.1°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#401B8E
RGBrgb(64, 27, 142)
HSLhsl(259, 68%, 33%)
HSVhsv(259, 81%, 56%)
CMYKcmyk(54.9%, 81%, 0%, 44.3%)
CIE-LABlab(23.09, 44.89, -56.58)
CIE-LCHlch(23.09, 72.23, 308.43°)
OKLaboklab(35.74% 0.0564 -0.1627)
OKLCHoklch(35.74% 0.172 289.1)
XYZxyz(7.3873, 3.8265, 25.9353)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B8E #698E1B
analogous
#1B308E #401B8E #791B8E
triadic
#401B8E #8E401B #1B8E40
tetradic
#401B8E #8E1B30 #698E1B #1B8E79
square
#401B8E #8E1B30 #698E1B #1B8E79
split-complementary
#401B8E #8E791B #308E1B
monochromatic
#120727 #29115B #401B8E #5725C1 #7747DC

Accessibility & contrast

On white

11.90
#401B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#401B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B8E
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B8E#FFFFFF#000000##FFFFFF
##401B8E1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#213D55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401b8e;
/* rgb */ color: rgb(64, 27, 142);
/* oklch */ color: oklch(35.7% 0.172 289.1);
Tailwind
colors: {
  custom: {
    50: '#7e5db0',
    500: '#401b8e',
    950: '#000000',
  },
}
SCSS
$custom: #401b8e;
$custom-light: #7e5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#401b8e",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 259.304,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3574,
    "c": 0.17224,
    "h": 289.1
  },
  "luminance": 0.03827
}

Semantic roles & 50–950 ramp

primary
#401B8E
secondary
#98BE47
accent
#EB3DB3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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