#401E7A#401E7A

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

Color values

HEX#401E7A
RGBrgb(64, 30, 122)
HSLhsl(262, 61%, 30%)
HSVhsv(262, 75%, 48%)
CMYKcmyk(47.5%, 75.4%, 0%, 52.2%)
CIE-LABlab(21.67, 37.73, -46.33)
CIE-LCHlch(21.67, 59.75, 309.16°)
OKLaboklab(34.15% 0.0596 -0.1327)
OKLCHoklch(34.15% 0.146 294.2)
XYZxyz(6.0905, 3.4235, 18.7485)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E7A #587A1E
analogous
#1E2A7A #401E7A #6E1E7A
triadic
#401E7A #7A401E #1E7A40
tetradic
#401E7A #7A1E2A #587A1E #1E7A6E
square
#401E7A #7A1E2A #587A1E #1E7A6E
split-complementary
#401E7A #7A6E1E #2A7A1E
monochromatic
#0D0619 #261249 #401E7A #5A2AAB #7742D0

Accessibility & contrast

On white

12.46
#401E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401E7A
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E7A#FFFFFF#000000##FFFFFF
##401E7A1.0012.461.6812.46
#FFFFFF12.461.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401e7a;
/* rgb */ color: rgb(64, 30, 122);
/* oklch */ color: oklch(34.2% 0.146 294.2);
Tailwind
colors: {
  custom: {
    50: '#7b5da1',
    500: '#401e7a',
    950: '#000000',
  },
}
SCSS
$custom: #401e7a;
$custom-light: #7b5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#401e7a",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 262.174,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34153,
    "c": 0.14551,
    "h": 294.2
  },
  "luminance": 0.03424
}

Semantic roles & 50–950 ramp

primary
#401E7A
secondary
#87AE46
accent
#E444A9
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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