#401370#401370

#401370 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.146 H 299.7°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#401370
RGBrgb(64, 19, 112)
HSLhsl(269, 71%, 26%)
HSVhsv(269, 83%, 44%)
CMYKcmyk(42.9%, 83%, 0%, 56.1%)
CIE-LABlab(18.91, 40.20, -44.41)
CIE-LCHlch(18.91, 59.90, 312.16°)
OKLaboklab(31.93% 0.0725 -0.127)
OKLCHoklch(31.93% 0.146 299.7)
XYZxyz(5.2711, 2.7255, 15.5745)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401370 #437013
analogous
#131570 #401370 #6E1370
triadic
#401370 #704013 #137040
tetradic
#401370 #701315 #437013 #13706E
square
#401370 #701315 #437013 #13706E
split-complementary
#401370 #706E13 #157013
monochromatic
#0F041A #220A3C #401370 #5E1CA4 #7C25D9

Accessibility & contrast

On white

13.59
#401370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#401370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401370
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401370#FFFFFF#000000##FFFFFF
##4013701.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E73
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#342D42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401370;
/* rgb */ color: rgb(64, 19, 112);
/* oklch */ color: oklch(31.9% 0.146 299.7);
Tailwind
colors: {
  custom: {
    50: '#7a579a',
    500: '#401370',
    950: '#000000',
  },
}
SCSS
$custom: #401370;
$custom-light: #7a579a;
$custom-dark: #000000;
JSON
{
  "hex": "#401370",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 269.032,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31931,
    "c": 0.14624,
    "h": 299.7
  },
  "luminance": 0.02726
}

Semantic roles & 50–950 ramp

primary
#401370
secondary
#71A738
accent
#EE3A97
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401370

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

Preview Lab → · Contrast checker → · Palette generator →

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