#401465#401465

#401465 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.133 H 304.2°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#401465
RGBrgb(64, 20, 101)
HSLhsl(273, 67%, 24%)
HSVhsv(273, 80%, 40%)
CMYKcmyk(36.6%, 80.2%, 0%, 60.4%)
CIE-LABlab(18.05, 36.91, -38.62)
CIE-LCHlch(18.05, 53.42, 313.70°)
OKLaboklab(31.02% 0.0747 -0.11)
OKLCHoklch(31.02% 0.133 304.2)
XYZxyz(4.7129, 2.5299, 12.5494)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401465 #396514
analogous
#181465 #401465 #651461
triadic
#401465 #654014 #146540
tetradic
#401465 #651814 #396514 #146165
square
#401465 #651814 #396514 #146165
split-complementary
#401465 #616514 #146518
monochromatic
#10051A #200A32 #401465 #601E98 #8128CB

Accessibility & contrast

On white

13.94
#401465 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#401465 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##401465#FFFFFF#000000##FFFFFF
##4014651.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)
#002B67
Deuteranopia (green-blind)
#002C63
Tritanopia (blue-blind)
#39293C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401465;
/* rgb */ color: rgb(64, 20, 101);
/* oklch */ color: oklch(31.0% 0.133 304.2);
Tailwind
colors: {
  custom: {
    50: '#795792',
    500: '#401465',
    950: '#000000',
  },
}
SCSS
$custom: #401465;
$custom-light: #795792;
$custom-dark: #000000;
JSON
{
  "hex": "#401465",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 101
  },
  "hsl": {
    "h": 272.593,
    "s": 66.942,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31021,
    "c": 0.13301,
    "h": 304.2
  },
  "luminance": 0.0253
}

Semantic roles & 50–950 ramp

primary
#401465
secondary
#669C39
accent
#EA3E8C
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401465

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

Preview Lab → · Contrast checker → · Palette generator →

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