#401E7E#401E7E

#401E7E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.150 H 293.0°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#401E7E
RGBrgb(64, 30, 126)
HSLhsl(261, 62%, 31%)
HSVhsv(261, 76%, 49%)
CMYKcmyk(49.2%, 76.2%, 0%, 50.6%)
CIE-LABlab(22.03, 38.88, -48.27)
CIE-LCHlch(22.03, 61.98, 308.85°)
OKLaboklab(34.53% 0.0587 -0.1384)
OKLCHoklch(34.53% 0.15 293)
XYZxyz(6.3435, 3.5247, 20.0807)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E7E #5C7E1E
analogous
#1E2C7E #401E7E #701E7E
triadic
#401E7E #7E401E #1E7E40
tetradic
#401E7E #7E1E2C #5C7E1E #1E7E70
square
#401E7E #7E1E2C #5C7E1E #1E7E70
split-complementary
#401E7E #7E701E #2C7E1E
monochromatic
#0E061B #27124D #401E7E #592AAF #7644D2

Accessibility & contrast

On white

12.32
#401E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#401E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E7E
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E7E#FFFFFF#000000##FFFFFF
##401E7E1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#2D374C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401e7e;
/* rgb */ color: rgb(64, 30, 126);
/* oklch */ color: oklch(34.5% 0.150 293.0);
Tailwind
colors: {
  custom: {
    50: '#7c5da4',
    500: '#401e7e',
    950: '#000000',
  },
}
SCSS
$custom: #401e7e;
$custom-light: #7c5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#401e7e",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 261.25,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34526,
    "c": 0.15035,
    "h": 293
  },
  "luminance": 0.03525
}

Semantic roles & 50–950 ramp

primary
#401E7E
secondary
#8BB147
accent
#E543AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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