#401A70#401A70

#401A70 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.138 H 298.5°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#401A70
RGBrgb(64, 26, 112)
HSLhsl(267, 62%, 27%)
HSVhsv(267, 77%, 44%)
CMYKcmyk(42.9%, 76.8%, 0%, 56.1%)
CIE-LABlab(20.04, 36.97, -42.56)
CIE-LCHlch(20.04, 56.38, 310.98°)
OKLaboklab(32.72% 0.066 -0.1216)
OKLCHoklch(32.72% 0.138 298.5)
XYZxyz(5.4076, 2.9985, 15.6200)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A70 #4A701A
analogous
#1A1F70 #401A70 #6B1A70
triadic
#401A70 #70401A #1A7040
tetradic
#401A70 #701A1F #4A701A #1A706B
square
#401A70 #701A1F #4A701A #1A706B
split-complementary
#401A70 #706B1A #1F701A
monochromatic
#0E0619 #240E3E #401A70 #5C26A2 #7934D0

Accessibility & contrast

On white

13.13
#401A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#401A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A70
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A70#FFFFFF#000000##FFFFFF
##401A701.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00306E
Tritanopia (blue-blind)
#343043
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401a70;
/* rgb */ color: rgb(64, 26, 112);
/* oklch */ color: oklch(32.7% 0.138 298.5);
Tailwind
colors: {
  custom: {
    50: '#7a5b9a',
    500: '#401a70',
    950: '#000000',
  },
}
SCSS
$custom: #401a70;
$custom-light: #7a5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#401a70",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 112
  },
  "hsl": {
    "h": 266.512,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32723,
    "c": 0.13841,
    "h": 298.5
  },
  "luminance": 0.02999
}

Semantic roles & 50–950 ramp

primary
#401A70
secondary
#79A541
accent
#E5429D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401A70

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

Preview Lab → · Contrast checker → · Palette generator →

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