#401A7A#401A7A

#401A7A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.150 H 295.0°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#401A7A
RGBrgb(64, 26, 122)
HSLhsl(264, 65%, 29%)
HSVhsv(264, 79%, 48%)
CMYKcmyk(47.5%, 78.7%, 0%, 52.2%)
CIE-LABlab(20.96, 39.74, -47.49)
CIE-LCHlch(20.96, 61.92, 309.93°)
OKLaboklab(33.65% 0.0634 -0.1361)
OKLCHoklch(33.65% 0.15 295)
XYZxyz(5.9956, 3.2338, 18.7169)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A7A #547A1A
analogous
#1A247A #401A7A #701A7A
triadic
#401A7A #7A401A #1A7A40
tetradic
#401A7A #7A1A24 #547A1A #1A7A70
square
#401A7A #7A1A24 #547A1A #1A7A70
split-complementary
#401A7A #7A701A #247A1A
monochromatic
#0D0519 #260F48 #401A7A #5A25AC #7739D5

Accessibility & contrast

On white

12.75
#401A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#401A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A7A
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A7A#FFFFFF#000000##FFFFFF
##401A7A1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#2F3449
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401a7a;
/* rgb */ color: rgb(64, 26, 122);
/* oklch */ color: oklch(33.7% 0.150 295.0);
Tailwind
colors: {
  custom: {
    50: '#7b5ba1',
    500: '#401a7a',
    950: '#000000',
  },
}
SCSS
$custom: #401a7a;
$custom-light: #7b5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#401a7a",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 263.75,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33653,
    "c": 0.15013,
    "h": 295
  },
  "luminance": 0.03234
}

Semantic roles & 50–950 ramp

primary
#401A7A
secondary
#83AE41
accent
#E840A5
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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