#401B66#401B66

#401B66 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.125 H 302.4°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#401B66
RGBrgb(64, 27, 102)
HSLhsl(270, 58%, 25%)
HSVhsv(270, 74%, 40%)
CMYKcmyk(37.3%, 73.5%, 0%, 60%)
CIE-LABlab(19.36, 33.71, -37.15)
CIE-LCHlch(19.36, 50.16, 312.23°)
OKLaboklab(31.98% 0.067 -0.1057)
OKLCHoklch(31.98% 0.125 302.4)
XYZxyz(4.9040, 2.8332, 12.8563)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B66 #41661B
analogous
#1B1B66 #401B66 #651B66
triadic
#401B66 #66401B #1B6640
tetradic
#401B66 #661B1B #41661B #1B6665
square
#401B66 #661B1B #41661B #1B6665
split-complementary
#401B66 #66651B #1B661B
monochromatic
#0F0618 #220E36 #401B66 #5E2896 #7D35C7

Accessibility & contrast

On white

13.40
#401B66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#401B66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B66
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B66#FFFFFF#000000##FFFFFF
##401B661.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#002F64
Tritanopia (blue-blind)
#382D3E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401b66;
/* rgb */ color: rgb(64, 27, 102);
/* oklch */ color: oklch(32.0% 0.125 302.4);
Tailwind
colors: {
  custom: {
    50: '#795b92',
    500: '#401b66',
    950: '#000000',
  },
}
SCSS
$custom: #401b66;
$custom-light: #795b92;
$custom-dark: #000000;
JSON
{
  "hex": "#401b66",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 102
  },
  "hsl": {
    "h": 269.6,
    "s": 58.14,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31975,
    "c": 0.12517,
    "h": 302.4
  },
  "luminance": 0.02833
}

Semantic roles & 50–950 ramp

primary
#401B66
secondary
#6F9B41
accent
#E14695
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401B66

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

Preview Lab → · Contrast checker → · Palette generator →

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