#401A58#401A58

#401A58 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.7% C 0.110 H 309.6°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#401A58
RGBrgb(64, 26, 88)
HSLhsl(277, 54%, 22%)
HSVhsv(277, 70%, 35%)
CMYKcmyk(27.3%, 70.5%, 0%, 65.5%)
CIE-LABlab(18.07, 30.55, -29.95)
CIE-LCHlch(18.07, 42.78, 315.56°)
OKLaboklab(30.7% 0.07 -0.0846)
OKLCHoklch(30.7% 0.11 309.6)
XYZxyz(4.2449, 2.5334, 9.4960)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A58 #32581A
analogous
#211A58 #401A58 #581A51
triadic
#401A58 #58401A #1A5840
tetradic
#401A58 #58211A #32581A #1A5158
square
#401A58 #58211A #32581A #1A5158
split-complementary
#401A58 #51581A #1A5821
monochromatic
#110718 #1E0C29 #401A58 #622887 #8536B6

Accessibility & contrast

On white

13.94
#401A58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#401A58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A58
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A58#FFFFFF#000000##FFFFFF
##401A581.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5A
Deuteranopia (green-blind)
#112D57
Tritanopia (blue-blind)
#3D2736
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401a58;
/* rgb */ color: rgb(64, 26, 88);
/* oklch */ color: oklch(30.7% 0.110 309.6);
Tailwind
colors: {
  custom: {
    50: '#775987',
    500: '#401a58',
    950: '#000000',
  },
}
SCSS
$custom: #401a58;
$custom-light: #775987;
$custom-dark: #000000;
JSON
{
  "hex": "#401a58",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 88
  },
  "hsl": {
    "h": 276.774,
    "s": 54.386,
    "l": 22.353
  },
  "oklch": {
    "l": 0.307,
    "c": 0.10977,
    "h": 309.6
  },
  "luminance": 0.02533
}

Semantic roles & 50–950 ramp

primary
#401A58
secondary
#5E8E40
accent
#DE4A83
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401A58

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

Preview Lab → · Contrast checker → · Palette generator →

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