#401E7B#401E7B

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

Color values

HEX#401E7B
RGBrgb(64, 30, 123)
HSLhsl(262, 61%, 30%)
HSVhsv(262, 76%, 48%)
CMYKcmyk(48%, 75.6%, 0%, 51.8%)
CIE-LABlab(21.76, 38.02, -46.81)
CIE-LCHlch(21.76, 60.31, 309.08°)
OKLaboklab(34.24% 0.0594 -0.1342)
OKLCHoklch(34.24% 0.147 293.9)
XYZxyz(6.1528, 3.4484, 19.0765)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E7B #597B1E
analogous
#1E2B7B #401E7B #6E1E7B
triadic
#401E7B #7B401E #1E7B40
tetradic
#401E7B #7B1E2B #597B1E #1E7B6E
square
#401E7B #7B1E2B #597B1E #1E7B6E
split-complementary
#401E7B #7B6E1E #2B7B1E
monochromatic
#0D0619 #26124A #401E7B #5A2AAC #7742D1

Accessibility & contrast

On white

12.43
#401E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#401E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E7B
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E7B#FFFFFF#000000##FFFFFF
##401E7B1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#2F364A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401e7b;
/* rgb */ color: rgb(64, 30, 123);
/* oklch */ color: oklch(34.2% 0.147 293.9);
Tailwind
colors: {
  custom: {
    50: '#7b5da2',
    500: '#401e7b',
    950: '#000000',
  },
}
SCSS
$custom: #401e7b;
$custom-light: #7b5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#401e7b",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 261.935,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.34245,
    "c": 0.14672,
    "h": 293.9
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#401E7B
secondary
#88AE46
accent
#E444A9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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