#401059#401059

#401059 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.125 H 310.8°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#401059
RGBrgb(64, 16, 89)
HSLhsl(279, 70%, 21%)
HSVhsv(279, 82%, 35%)
CMYKcmyk(28.1%, 82%, 0%, 65.1%)
CIE-LABlab(16.41, 35.67, -33.30)
CIE-LCHlch(16.41, 48.80, 316.97°)
OKLaboklab(29.55% 0.0816 -0.0943)
OKLCHoklch(29.55% 0.125 310.8)
XYZxyz(4.1025, 2.1819, 9.6543)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401059 #295910
analogous
#1B1059 #401059 #59104D
triadic
#401059 #594010 #105940
tetradic
#401059 #591B10 #295910 #104D59
square
#401059 #591B10 #295910 #104D59
split-complementary
#401059 #4D5910 #10591B
monochromatic
#13051A #1B0725 #401059 #65198D #8B23C1

Accessibility & contrast

On white

14.62
#401059 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#401059 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401059
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401059#FFFFFF#000000##FFFFFF
##4010591.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#022957
Tritanopia (blue-blind)
#3D2134
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401059;
/* rgb */ color: rgb(64, 16, 89);
/* oklch */ color: oklch(29.5% 0.125 310.8);
Tailwind
colors: {
  custom: {
    50: '#785488',
    500: '#401059',
    950: '#000000',
  },
}
SCSS
$custom: #401059;
$custom-light: #785488;
$custom-dark: #000000;
JSON
{
  "hex": "#401059",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 89
  },
  "hsl": {
    "h": 279.452,
    "s": 69.524,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29545,
    "c": 0.12471,
    "h": 310.8
  },
  "luminance": 0.02182
}

Semantic roles & 50–950 ramp

primary
#401059
secondary
#539233
accent
#EC3B78
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401059

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

Preview Lab → · Contrast checker → · Palette generator →

#401059 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva