#401673#401673

#401673 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.146 H 298.1°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#401673
RGBrgb(64, 22, 115)
HSLhsl(267, 68%, 27%)
HSVhsv(267, 81%, 45%)
CMYKcmyk(44.3%, 80.9%, 0%, 54.9%)
CIE-LABlab(19.64, 39.69, -45.14)
CIE-LCHlch(19.64, 60.11, 311.32°)
OKLaboklab(32.53% 0.069 -0.1292)
OKLCHoklch(32.53% 0.146 298.1)
XYZxyz(5.4950, 2.9015, 16.4869)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401673 #497316
analogous
#161B73 #401673 #6F1673
triadic
#401673 #734016 #167340
tetradic
#401673 #73161B #497316 #16736F
square
#401673 #73161B #497316 #16736F
split-complementary
#401673 #736F16 #1B7316
monochromatic
#0E051A #230C40 #401673 #5D20A6 #792DD7

Accessibility & contrast

On white

13.29
#401673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#401673 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401673
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401673#FFFFFF#000000##FFFFFF
##4016731.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#332F44
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401673;
/* rgb */ color: rgb(64, 22, 115);
/* oklch */ color: oklch(32.5% 0.146 298.1);
Tailwind
colors: {
  custom: {
    50: '#7b599c',
    500: '#401673',
    950: '#000000',
  },
}
SCSS
$custom: #401673;
$custom-light: #7b599c;
$custom-dark: #000000;
JSON
{
  "hex": "#401673",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 267.097,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32532,
    "c": 0.14646,
    "h": 298.1
  },
  "luminance": 0.02902
}

Semantic roles & 50–950 ramp

primary
#401673
secondary
#78A93C
accent
#EB3D9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401673

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

Preview Lab → · Contrast checker → · Palette generator →

#401673 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva