#401864#401864

#401864 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.127 H 303.9°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#401864
RGBrgb(64, 24, 100)
HSLhsl(272, 61%, 24%)
HSVhsv(272, 76%, 39%)
CMYKcmyk(36%, 76%, 0%, 60.8%)
CIE-LABlab(18.64, 34.73, -37.00)
CIE-LCHlch(18.64, 50.75, 313.19°)
OKLaboklab(31.41% 0.0707 -0.1053)
OKLCHoklch(31.41% 0.127 303.9)
XYZxyz(4.7407, 2.6634, 12.3184)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401864 #3C6418
analogous
#1A1864 #401864 #641862
triadic
#401864 #644018 #186440
tetradic
#401864 #641A18 #3C6418 #186264
square
#401864 #641A18 #3C6418 #186264
split-complementary
#401864 #626418 #18641A
monochromatic
#100619 #200C33 #401864 #602495 #7F30C7

Accessibility & contrast

On white

13.70
#401864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#401864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401864
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401864#FFFFFF#000000##FFFFFF
##4018641.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002D62
Tritanopia (blue-blind)
#392A3C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401864;
/* rgb */ color: rgb(64, 24, 100);
/* oklch */ color: oklch(31.4% 0.127 303.9);
Tailwind
colors: {
  custom: {
    50: '#795991',
    500: '#401864',
    950: '#000000',
  },
}
SCSS
$custom: #401864;
$custom-light: #795991;
$custom-dark: #000000;
JSON
{
  "hex": "#401864",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 271.579,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.3141,
    "c": 0.12686,
    "h": 303.9
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#401864
secondary
#699A3E
accent
#E44390
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040D
muted
#7B797D

Preview Lab

Preview with #401864

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

Preview Lab → · Contrast checker → · Palette generator →

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