#401B7E#401B7E

#401B7E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.154 H 293.5°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#401B7E
RGBrgb(64, 27, 126)
HSLhsl(262, 65%, 30%)
HSVhsv(262, 79%, 49%)
CMYKcmyk(49.2%, 78.6%, 0%, 50.6%)
CIE-LABlab(21.51, 40.38, -49.13)
CIE-LCHlch(21.51, 63.59, 309.41°)
OKLaboklab(34.16% 0.0614 -0.1409)
OKLCHoklch(34.16% 0.154 293.5)
XYZxyz(6.2711, 3.3800, 20.0566)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B7E #597E1B
analogous
#1B287E #401B7E #711B7E
triadic
#401B7E #7E401B #1B7E40
tetradic
#401B7E #7E1B28 #597E1B #1B7E71
square
#401B7E #7E1B28 #597E1B #1B7E71
split-complementary
#401B7E #7E711B #287E1B
monochromatic
#0D0519 #26104C #401B7E #5A26B0 #773ED6

Accessibility & contrast

On white

12.53
#401B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B7E
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B7E#FFFFFF#000000##FFFFFF
##401B7E1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#2D364B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401b7e;
/* rgb */ color: rgb(64, 27, 126);
/* oklch */ color: oklch(34.2% 0.154 293.5);
Tailwind
colors: {
  custom: {
    50: '#7c5ca4',
    500: '#401b7e',
    950: '#000000',
  },
}
SCSS
$custom: #401b7e;
$custom-light: #7c5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#401b7e",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 262.424,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.34155,
    "c": 0.15371,
    "h": 293.5
  },
  "luminance": 0.0338
}

Semantic roles & 50–950 ramp

primary
#401B7E
secondary
#88B243
accent
#E840A9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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