#401659#401659

#401659 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.117 H 309.9°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#401659
RGBrgb(64, 22, 89)
HSLhsl(278, 60%, 22%)
HSVhsv(278, 75%, 35%)
CMYKcmyk(28.1%, 75.3%, 0%, 65.1%)
CIE-LABlab(17.39, 32.90, -31.72)
CIE-LCHlch(17.39, 45.70, 316.05°)
OKLaboklab(30.24% 0.0749 -0.0897)
OKLCHoklch(30.24% 0.117 309.9)
XYZxyz(4.2041, 2.3852, 9.6882)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401659 #2F5916
analogous
#1F1659 #401659 #591651
triadic
#401659 #594016 #165940
tetradic
#401659 #591F16 #2F5916 #165159
square
#401659 #591F16 #2F5916 #165159
split-complementary
#401659 #515916 #16591F
monochromatic
#120619 #1D0A28 #401659 #63228A #872EBB

Accessibility & contrast

On white

14.22
#401659 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401659 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401659
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401659#FFFFFF#000000##FFFFFF
##4016591.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295B
Deuteranopia (green-blind)
#0A2B58
Tritanopia (blue-blind)
#3C2535
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401659;
/* rgb */ color: rgb(64, 22, 89);
/* oklch */ color: oklch(30.2% 0.117 309.9);
Tailwind
colors: {
  custom: {
    50: '#785788',
    500: '#401659',
    950: '#000000',
  },
}
SCSS
$custom: #401659;
$custom-light: #785788;
$custom-dark: #000000;
JSON
{
  "hex": "#401659",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 89
  },
  "hsl": {
    "h": 277.612,
    "s": 60.36,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30238,
    "c": 0.1169,
    "h": 309.9
  },
  "luminance": 0.02385
}

Semantic roles & 50–950 ramp

primary
#401659
secondary
#5B903B
accent
#E44480
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401659

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

Preview Lab → · Contrast checker → · Palette generator →

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