#401B7F#401B7F

#401B7F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.155 H 293.2°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#401B7F
RGBrgb(64, 27, 127)
HSLhsl(262, 65%, 30%)
HSVhsv(262, 79%, 50%)
CMYKcmyk(49.6%, 78.7%, 0%, 50.2%)
CIE-LABlab(21.60, 40.66, -49.61)
CIE-LCHlch(21.60, 64.14, 309.34°)
OKLaboklab(34.25% 0.0611 -0.1423)
OKLCHoklch(34.25% 0.155 293.2)
XYZxyz(6.3360, 3.4060, 20.3981)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B7F #5A7F1B
analogous
#1B287F #401B7F #721B7F
triadic
#401B7F #7F401B #1B7F40
tetradic
#401B7F #7F1B28 #5A7F1B #1B7F72
square
#401B7F #7F1B28 #5A7F1B #1B7F72
split-complementary
#401B7F #7F721B #287F1B
monochromatic
#0D061A #27104D #401B7F #5926B1 #763ED6

Accessibility & contrast

On white

12.49
#401B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#401B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B7F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B7F#FFFFFF#000000##FFFFFF
##401B7F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#2C364C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401b7f;
/* rgb */ color: rgb(64, 27, 127);
/* oklch */ color: oklch(34.3% 0.155 293.2);
Tailwind
colors: {
  custom: {
    50: '#7c5ca5',
    500: '#401b7f',
    950: '#000000',
  },
}
SCSS
$custom: #401b7f;
$custom-light: #7c5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#401b7f",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 262.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34251,
    "c": 0.15489,
    "h": 293.2
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#401B7F
secondary
#89B343
accent
#E840AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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