#401361#401361

#401361 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.130 H 306.2°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#401361
RGBrgb(64, 19, 97)
HSLhsl(275, 67%, 23%)
HSVhsv(275, 80%, 38%)
CMYKcmyk(34%, 80.4%, 0%, 62%)
CIE-LABlab(17.55, 36.34, -36.80)
CIE-LCHlch(17.55, 51.72, 314.64°)
OKLaboklab(30.56% 0.0767 -0.1047)
OKLCHoklch(30.56% 0.13 306.2)
XYZxyz(4.5044, 2.4188, 11.5365)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401361 #346113
analogous
#191361 #401361 #61135B
triadic
#401361 #614013 #136140
tetradic
#401361 #611913 #346113 #135B61
square
#401361 #611913 #346113 #135B61
split-complementary
#401361 #5B6113 #136119
monochromatic
#11051A #1E092E #401361 #621D94 #8427C7

Accessibility & contrast

On white

14.15
#401361 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401361 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401361
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401361#FFFFFF#000000##FFFFFF
##4013611.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A63
Deuteranopia (green-blind)
#002B5F
Tritanopia (blue-blind)
#3A2639
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401361;
/* rgb */ color: rgb(64, 19, 97);
/* oklch */ color: oklch(30.6% 0.130 306.2);
Tailwind
colors: {
  custom: {
    50: '#79568f',
    500: '#401361',
    950: '#000000',
  },
}
SCSS
$custom: #401361;
$custom-light: #79568f;
$custom-dark: #000000;
JSON
{
  "hex": "#401361",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 97
  },
  "hsl": {
    "h": 274.615,
    "s": 67.241,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30556,
    "c": 0.12977,
    "h": 306.2
  },
  "luminance": 0.02419
}

Semantic roles & 50–950 ramp

primary
#401361
secondary
#609937
accent
#EA3E87
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401361

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

Preview Lab → · Contrast checker → · Palette generator →

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