#401264#401264

#401264 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.134 H 305.0°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#401264
RGBrgb(64, 18, 100)
HSLhsl(274, 69%, 23%)
HSVhsv(274, 82%, 39%)
CMYKcmyk(36%, 82%, 0%, 60.8%)
CIE-LABlab(17.66, 37.54, -38.60)
CIE-LCHlch(17.66, 53.84, 314.20°)
OKLaboklab(30.71% 0.0769 -0.11)
OKLCHoklch(30.71% 0.134 305)
XYZxyz(4.6304, 2.4427, 12.2817)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401264 #366412
analogous
#171264 #401264 #64125F
triadic
#401264 #644012 #126440
tetradic
#401264 #641712 #366412 #125F64
square
#401264 #641712 #366412 #125F64
split-complementary
#401264 #5F6412 #126417
monochromatic
#11051A #1F0930 #401264 #611B98 #8225CC

Accessibility & contrast

On white

14.11
#401264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#401264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401264
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401264#FFFFFF#000000##FFFFFF
##4012641.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#39273B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401264;
/* rgb */ color: rgb(64, 18, 100);
/* oklch */ color: oklch(30.7% 0.134 305.0);
Tailwind
colors: {
  custom: {
    50: '#795691',
    500: '#401264',
    950: '#000000',
  },
}
SCSS
$custom: #401264;
$custom-light: #795691;
$custom-dark: #000000;
JSON
{
  "hex": "#401264",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 273.659,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30715,
    "c": 0.1342,
    "h": 305
  },
  "luminance": 0.02443
}

Semantic roles & 50–950 ramp

primary
#401264
secondary
#639C36
accent
#EC3B89
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401264

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

Preview Lab → · Contrast checker → · Palette generator →

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