#401B6C#401B6C

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

Color values

HEX#401B6C
RGBrgb(64, 27, 108)
HSLhsl(267, 60%, 26%)
HSVhsv(267, 75%, 42%)
CMYKcmyk(40.7%, 75%, 0%, 57.6%)
CIE-LABlab(19.87, 35.36, -40.24)
CIE-LCHlch(19.87, 53.57, 311.30°)
OKLaboklab(32.49% 0.0659 -0.1148)
OKLCHoklch(32.49% 0.132 299.8)
XYZxyz(5.2124, 2.9565, 14.4805)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B6C #476C1B
analogous
#1B1F6C #401B6C #691B6C
triadic
#401B6C #6C401B #1B6C40
tetradic
#401B6C #6C1B1F #476C1B #1B6C69
square
#401B6C #6C1B1F #476C1B #1B6C69
split-complementary
#401B6C #6C691B #1F6C1B
monochromatic
#0F0618 #230F3B #401B6C #5D279D #7A35CC

Accessibility & contrast

On white

13.20
#401B6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#401B6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B6C
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B6C#FFFFFF#000000##FFFFFF
##401B6C1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#362F41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401b6c;
/* rgb */ color: rgb(64, 27, 108);
/* oklch */ color: oklch(32.5% 0.132 299.8);
Tailwind
colors: {
  custom: {
    50: '#795b97',
    500: '#401b6c',
    950: '#000000',
  },
}
SCSS
$custom: #401b6c;
$custom-light: #795b97;
$custom-dark: #000000;
JSON
{
  "hex": "#401b6c",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 108
  },
  "hsl": {
    "h": 267.407,
    "s": 60,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32494,
    "c": 0.13238,
    "h": 299.8
  },
  "luminance": 0.02957
}

Semantic roles & 50–950 ramp

primary
#401B6C
secondary
#76A142
accent
#E3459B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401B6C

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

Preview Lab → · Contrast checker → · Palette generator →

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