#401C63#401C63

#401C63 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.120 H 303.5°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#401C63
RGBrgb(64, 28, 99)
HSLhsl(270, 56%, 25%)
HSVhsv(270, 72%, 39%)
CMYKcmyk(35.4%, 71.7%, 0%, 61.2%)
CIE-LABlab(19.31, 32.36, -35.25)
CIE-LCHlch(19.31, 47.85, 312.55°)
OKLaboklab(31.86% 0.0662 -0.1002)
OKLCHoklch(31.86% 0.12 303.5)
XYZxyz(4.7812, 2.8214, 12.0946)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C63 #3F631C
analogous
#1D1C63 #401C63 #631C62
triadic
#401C63 #63401C #1C6340
tetradic
#401C63 #631D1C #3F631C #1C6263
square
#401C63 #631D1C #3F631C #1C6263
split-complementary
#401C63 #62631C #1C631D
monochromatic
#0F0718 #210F33 #401C63 #5F2993 #7E37C2

Accessibility & contrast

On white

13.43
#401C63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401C63
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C63#FFFFFF#000000##FFFFFF
##401C631.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E65
Deuteranopia (green-blind)
#012F61
Tritanopia (blue-blind)
#392C3D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401c63;
/* rgb */ color: rgb(64, 28, 99);
/* oklch */ color: oklch(31.9% 0.120 303.5);
Tailwind
colors: {
  custom: {
    50: '#785b90',
    500: '#401c63',
    950: '#000000',
  },
}
SCSS
$custom: #401c63;
$custom-light: #785b90;
$custom-dark: #000000;
JSON
{
  "hex": "#401c63",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 99
  },
  "hsl": {
    "h": 270.423,
    "s": 55.906,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31863,
    "c": 0.1201,
    "h": 303.5
  },
  "luminance": 0.02821
}

Semantic roles & 50–950 ramp

primary
#401C63
secondary
#6D9843
accent
#DF4993
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401C63

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

Preview Lab → · Contrast checker → · Palette generator →

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