#401D52#401D52

#401D52 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.7% C 0.098 H 312.5°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#401D52
RGBrgb(64, 29, 82)
HSLhsl(280, 48%, 22%)
HSVhsv(280, 65%, 32%)
CMYKcmyk(22%, 64.6%, 0%, 67.8%)
CIE-LABlab(18.27, 27.31, -25.60)
CIE-LCHlch(18.27, 37.43, 316.86°)
OKLaboklab(30.71% 0.0659 -0.0718)
OKLCHoklch(30.71% 0.098 312.5)
XYZxyz(4.0764, 2.5780, 8.2639)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D52 #2F521D
analogous
#261D52 #401D52 #521D4A
triadic
#401D52 #52401D #1D5240
tetradic
#401D52 #52261D #2F521D #1D4A52
square
#401D52 #52261D #2F521D #1D4A52
split-complementary
#401D52 #4A521D #1D5226
monochromatic
#120817 #1D0D25 #401D52 #632D7F #873DAC

Accessibility & contrast

On white

13.86
#401D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#401D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D52
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D52#FFFFFF#000000##FFFFFF
##401D521.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2B54
Deuteranopia (green-blind)
#1A2D51
Tritanopia (blue-blind)
#3E2734
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401d52;
/* rgb */ color: rgb(64, 29, 82);
/* oklch */ color: oklch(30.7% 0.098 312.5);
Tailwind
colors: {
  custom: {
    50: '#775b83',
    500: '#401d52',
    950: '#000000',
  },
}
SCSS
$custom: #401d52;
$custom-light: #775b83;
$custom-dark: #000000;
JSON
{
  "hex": "#401d52",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 279.623,
    "s": 47.748,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30707,
    "c": 0.0975,
    "h": 312.5
  },
  "luminance": 0.02578
}

Semantic roles & 50–950 ramp

primary
#401D52
secondary
#5B8744
accent
#D7507E
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401D52

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

Preview Lab → · Contrast checker → · Palette generator →

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