#401985#401985

#401985 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.164 H 291.8°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#401985
RGBrgb(64, 25, 133)
HSLhsl(262, 68%, 31%)
HSVhsv(262, 81%, 52%)
CMYKcmyk(51.9%, 81.2%, 0%, 47.8%)
CIE-LABlab(21.87, 43.27, -52.96)
CIE-LCHlch(21.87, 68.39, 309.25°)
OKLaboklab(34.62% 0.0608 -0.1521)
OKLCHoklch(34.62% 0.164 291.8)
XYZxyz(6.6944, 3.4784, 22.5044)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401985 #5E8519
analogous
#192885 #401985 #761985
triadic
#401985 #854019 #198540
tetradic
#401985 #851928 #5E8519 #198576
square
#401985 #851928 #5E8519 #198576
split-complementary
#401985 #857619 #288519
monochromatic
#0E061E #270F51 #401985 #5923B9 #763EDB

Accessibility & contrast

On white

12.38
#401985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#401985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401985
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401985#FFFFFF#000000##FFFFFF
##4019851.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#28384F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401985;
/* rgb */ color: rgb(64, 25, 133);
/* oklch */ color: oklch(34.6% 0.164 291.8);
Tailwind
colors: {
  custom: {
    50: '#7d5baa',
    500: '#401985',
    950: '#000000',
  },
}
SCSS
$custom: #401985;
$custom-light: #7d5baa;
$custom-dark: #000000;
JSON
{
  "hex": "#401985",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 261.667,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34615,
    "c": 0.16384,
    "h": 291.8
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#401985
secondary
#8DB941
accent
#EB3DAC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401985

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

Preview Lab → · Contrast checker → · Palette generator →

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