#401D69#401D69

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

Color values

HEX#401D69
RGBrgb(64, 29, 105)
HSLhsl(268, 57%, 26%)
HSVhsv(268, 72%, 41%)
CMYKcmyk(39%, 72.4%, 0%, 58.8%)
CIE-LABlab(20.00, 33.46, -38.08)
CIE-LCHlch(20.00, 50.69, 311.30°)
OKLaboklab(32.51% 0.0642 -0.1085)
OKLCHoklch(32.51% 0.126 300.6)
XYZxyz(5.1029, 2.9886, 13.6699)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D69 #46691D
analogous
#1D2069 #401D69 #661D69
triadic
#401D69 #69401D #1D6940
tetradic
#401D69 #691D20 #46691D #1D6966
square
#401D69 #691D20 #46691D #1D6966
split-complementary
#401D69 #69661D #20691D
monochromatic
#0F0718 #231039 #401D69 #5D2A99 #7B38C8

Accessibility & contrast

On white

13.14
#401D69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#401D69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D69
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D69#FFFFFF#000000##FFFFFF
##401D691.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306B
Deuteranopia (green-blind)
#003067
Tritanopia (blue-blind)
#372F40
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401d69;
/* rgb */ color: rgb(64, 29, 105);
/* oklch */ color: oklch(32.5% 0.126 300.6);
Tailwind
colors: {
  custom: {
    50: '#795c94',
    500: '#401d69',
    950: '#000000',
  },
}
SCSS
$custom: #401d69;
$custom-light: #795c94;
$custom-dark: #000000;
JSON
{
  "hex": "#401d69",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 105
  },
  "hsl": {
    "h": 267.632,
    "s": 56.716,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32507,
    "c": 0.12604,
    "h": 300.6
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#401D69
secondary
#749E44
accent
#E0489A
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401D69

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

Preview Lab → · Contrast checker → · Palette generator →

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