#401B6A#401B6A

#401B6A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.130 H 300.6°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#401B6A
RGBrgb(64, 27, 106)
HSLhsl(268, 59%, 26%)
HSVhsv(268, 75%, 42%)
CMYKcmyk(39.6%, 74.5%, 0%, 58.4%)
CIE-LABlab(19.70, 34.81, -39.22)
CIE-LCHlch(19.70, 52.44, 311.59°)
OKLaboklab(32.32% 0.0663 -0.1118)
OKLCHoklch(32.32% 0.13 300.6)
XYZxyz(5.1072, 2.9144, 13.9263)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B6A #456A1B
analogous
#1B1E6A #401B6A #671B6A
triadic
#401B6A #6A401B #1B6A40
tetradic
#401B6A #6A1B1E #456A1B #1B6A67
square
#401B6A #6A1B1E #456A1B #1B6A67
split-complementary
#401B6A #6A671B #1E6A1B
monochromatic
#0F0618 #230F39 #401B6A #5D279B #7B34CB

Accessibility & contrast

On white

13.27
#401B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#401B6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B6A
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B6A#FFFFFF#000000##FFFFFF
##401B6A1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002F68
Tritanopia (blue-blind)
#372E40
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401b6a;
/* rgb */ color: rgb(64, 27, 106);
/* oklch */ color: oklch(32.3% 0.130 300.6);
Tailwind
colors: {
  custom: {
    50: '#795b95',
    500: '#401b6a',
    950: '#000000',
  },
}
SCSS
$custom: #401b6a;
$custom-light: #795b95;
$custom-dark: #000000;
JSON
{
  "hex": "#401b6a",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 106
  },
  "hsl": {
    "h": 268.101,
    "s": 59.398,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32319,
    "c": 0.12998,
    "h": 300.6
  },
  "luminance": 0.02914
}

Semantic roles & 50–950 ramp

primary
#401B6A
secondary
#739F42
accent
#E34599
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401B6A

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

Preview Lab → · Contrast checker → · Palette generator →

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