#401E7C#401E7C

#401E7C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.148 H 293.6°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#401E7C
RGBrgb(64, 30, 124)
HSLhsl(262, 61%, 30%)
HSVhsv(262, 76%, 49%)
CMYKcmyk(48.4%, 75.8%, 0%, 51.4%)
CIE-LABlab(21.85, 38.30, -47.30)
CIE-LCHlch(21.85, 60.86, 309.00°)
OKLaboklab(34.34% 0.0592 -0.1356)
OKLCHoklch(34.34% 0.148 293.6)
XYZxyz(6.2157, 3.4736, 19.4078)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E7C #5A7C1E
analogous
#1E2B7C #401E7C #6F1E7C
triadic
#401E7C #7C401E #1E7C40
tetradic
#401E7C #7C1E2B #5A7C1E #1E7C6F
square
#401E7C #7C1E2B #5A7C1E #1E7C6F
split-complementary
#401E7C #7C6F1E #2B7C1E
monochromatic
#0D0619 #27124B #401E7C #592AAD #7643D1

Accessibility & contrast

On white

12.39
#401E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401E7C
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E7C#FFFFFF#000000##FFFFFF
##401E7C1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#2E374B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401e7c;
/* rgb */ color: rgb(64, 30, 124);
/* oklch */ color: oklch(34.3% 0.148 293.6);
Tailwind
colors: {
  custom: {
    50: '#7b5da3',
    500: '#401e7c',
    950: '#000000',
  },
}
SCSS
$custom: #401e7c;
$custom-light: #7b5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#401e7c",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 261.702,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34338,
    "c": 0.14793,
    "h": 293.6
  },
  "luminance": 0.03474
}

Semantic roles & 50–950 ramp

primary
#401E7C
secondary
#89AF46
accent
#E444AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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