#401C61#401C61

#401C61 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.7% C 0.118 H 304.4°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#401C61
RGBrgb(64, 28, 97)
HSLhsl(271, 55%, 25%)
HSVhsv(271, 71%, 38%)
CMYKcmyk(34%, 71.1%, 0%, 62%)
CIE-LABlab(19.16, 31.82, -34.19)
CIE-LCHlch(19.16, 46.71, 312.94°)
OKLaboklab(31.7% 0.0665 -0.0971)
OKLCHoklch(31.7% 0.118 304.4)
XYZxyz(4.6868, 2.7836, 11.5973)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C61 #3D611C
analogous
#1D1C61 #401C61 #611C60
triadic
#401C61 #61401C #1C6140
tetradic
#401C61 #611D1C #3D611C #1C6061
square
#401C61 #611D1C #3D611C #1C6061
split-complementary
#401C61 #60611C #1C611D
monochromatic
#100718 #210E32 #401C61 #5F2A90 #7F37C0

Accessibility & contrast

On white

13.49
#401C61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#401C61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C61
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C61#FFFFFF#000000##FFFFFF
##401C611.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E63
Deuteranopia (green-blind)
#052E60
Tritanopia (blue-blind)
#3A2B3C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401c61;
/* rgb */ color: rgb(64, 28, 97);
/* oklch */ color: oklch(31.7% 0.118 304.4);
Tailwind
colors: {
  custom: {
    50: '#785b8e',
    500: '#401c61',
    950: '#000000',
  },
}
SCSS
$custom: #401c61;
$custom-light: #785b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#401c61",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 97
  },
  "hsl": {
    "h": 271.304,
    "s": 55.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.317,
    "c": 0.11765,
    "h": 304.4
  },
  "luminance": 0.02784
}

Semantic roles & 50–950 ramp

primary
#401C61
secondary
#6B9643
accent
#DF4991
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401C61

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

Preview Lab → · Contrast checker → · Palette generator →

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