#401861#401861

#401861 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.123 H 305.3°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#401861
RGBrgb(64, 24, 97)
HSLhsl(273, 60%, 24%)
HSVhsv(273, 75%, 38%)
CMYKcmyk(34%, 75.3%, 0%, 62%)
CIE-LABlab(18.39, 33.94, -35.43)
CIE-LCHlch(18.39, 49.06, 313.77°)
OKLaboklab(31.16% 0.0713 -0.1007)
OKLCHoklch(31.16% 0.123 305.3)
XYZxyz(4.5982, 2.6064, 11.5678)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401861 #396118
analogous
#1B1861 #401861 #61185D
triadic
#401861 #614018 #186140
tetradic
#401861 #611B18 #396118 #185D61
square
#401861 #611B18 #396118 #185D61
split-complementary
#401861 #5D6118 #18611B
monochromatic
#100619 #200C30 #401861 #602492 #8130C3

Accessibility & contrast

On white

13.80
#401861 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#401861 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401861
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401861#FFFFFF#000000##FFFFFF
##4018611.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C63
Deuteranopia (green-blind)
#002D5F
Tritanopia (blue-blind)
#3A293A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401861;
/* rgb */ color: rgb(64, 24, 97);
/* oklch */ color: oklch(31.2% 0.123 305.3);
Tailwind
colors: {
  custom: {
    50: '#78598e',
    500: '#401861',
    950: '#000000',
  },
}
SCSS
$custom: #401861;
$custom-light: #78598e;
$custom-dark: #000000;
JSON
{
  "hex": "#401861",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 97
  },
  "hsl": {
    "h": 272.877,
    "s": 60.331,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31155,
    "c": 0.12336,
    "h": 305.3
  },
  "luminance": 0.02606
}

Semantic roles & 50–950 ramp

primary
#401861
secondary
#66973D
accent
#E3448C
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401861

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

Preview Lab → · Contrast checker → · Palette generator →

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