#401C6D#401C6D

#401C6D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.132 H 299.2°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#401C6D
RGBrgb(64, 28, 109)
HSLhsl(267, 59%, 27%)
HSVhsv(267, 74%, 43%)
CMYKcmyk(41.3%, 74.3%, 0%, 57.3%)
CIE-LABlab(20.14, 35.11, -40.45)
CIE-LCHlch(20.14, 53.56, 310.96°)
OKLaboklab(32.71% 0.0646 -0.1154)
OKLCHoklch(32.71% 0.132 299.2)
XYZxyz(5.2892, 3.0246, 14.7702)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C6D #496D1C
analogous
#1C206D #401C6D #691C6D
triadic
#401C6D #6D401C #1C6D40
tetradic
#401C6D #6D1C20 #496D1C #1C6D69
square
#401C6D #6D1C20 #496D1C #1C6D69
split-complementary
#401C6D #6D691C #206D1C
monochromatic
#0E0618 #230F3C #401C6D #5D299E #7938CC

Accessibility & contrast

On white

13.08
#401C6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#401C6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C6D
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C6D#FFFFFF#000000##FFFFFF
##401C6D1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#00306B
Tritanopia (blue-blind)
#353042
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401c6d;
/* rgb */ color: rgb(64, 28, 109);
/* oklch */ color: oklch(32.7% 0.132 299.2);
Tailwind
colors: {
  custom: {
    50: '#795b98',
    500: '#401c6d',
    950: '#000000',
  },
}
SCSS
$custom: #401c6d;
$custom-light: #795b98;
$custom-dark: #000000;
JSON
{
  "hex": "#401c6d",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 109
  },
  "hsl": {
    "h": 266.667,
    "s": 59.124,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32715,
    "c": 0.13228,
    "h": 299.2
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#401C6D
secondary
#78A243
accent
#E2459D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #401C6D

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

Preview Lab → · Contrast checker → · Palette generator →

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