#401970#401970

#401970 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.140 H 298.7°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#401970
RGBrgb(64, 25, 112)
HSLhsl(267, 64%, 27%)
HSVhsv(267, 78%, 44%)
CMYKcmyk(42.9%, 77.7%, 0%, 56.1%)
CIE-LABlab(19.86, 37.47, -42.85)
CIE-LCHlch(19.86, 56.92, 311.17°)
OKLaboklab(32.6% 0.067 -0.1225)
OKLCHoklch(32.6% 0.14 298.7)
XYZxyz(5.3859, 2.9550, 15.6127)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401970 #497019
analogous
#191D70 #401970 #6C1970
triadic
#401970 #704019 #197040
tetradic
#401970 #70191D #497019 #19706C
square
#401970 #70191D #497019 #19706C
split-complementary
#401970 #706C19 #1D7019
monochromatic
#0E0619 #230E3E #401970 #5D24A2 #7932D1

Accessibility & contrast

On white

13.20
#401970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#401970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401970
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401970#FFFFFF#000000##FFFFFF
##4019701.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#002F6E
Tritanopia (blue-blind)
#342F43
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401970;
/* rgb */ color: rgb(64, 25, 112);
/* oklch */ color: oklch(32.6% 0.140 298.7);
Tailwind
colors: {
  custom: {
    50: '#7a5a9a',
    500: '#401970',
    950: '#000000',
  },
}
SCSS
$custom: #401970;
$custom-light: #7a5a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#401970",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 266.897,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32599,
    "c": 0.13961,
    "h": 298.7
  },
  "luminance": 0.02955
}

Semantic roles & 50–950 ramp

primary
#401970
secondary
#78A540
accent
#E7419C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401970

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

Preview Lab → · Contrast checker → · Palette generator →

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