#401770#401770

#401770 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.142 H 299.1°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#401770
RGBrgb(64, 23, 112)
HSLhsl(268, 66%, 26%)
HSVhsv(268, 79%, 44%)
CMYKcmyk(42.9%, 79.5%, 0%, 56.1%)
CIE-LABlab(19.53, 38.43, -43.40)
CIE-LCHlch(19.53, 57.97, 311.52°)
OKLaboklab(32.36% 0.0689 -0.1241)
OKLCHoklch(32.36% 0.142 299.1)
XYZxyz(5.3446, 2.8726, 15.5990)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401770 #477017
analogous
#171B70 #401770 #6D1770
triadic
#401770 #704017 #177040
tetradic
#401770 #70171B #477017 #17706D
square
#401770 #70171B #477017 #17706D
split-complementary
#401770 #706D17 #1B7017
monochromatic
#0F0519 #230D3D #401770 #5D21A3 #7A2DD4

Accessibility & contrast

On white

13.34
#401770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#401770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401770
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401770#FFFFFF#000000##FFFFFF
##4017701.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#342F43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401770;
/* rgb */ color: rgb(64, 23, 112);
/* oklch */ color: oklch(32.4% 0.142 299.1);
Tailwind
colors: {
  custom: {
    50: '#7a599a',
    500: '#401770',
    950: '#000000',
  },
}
SCSS
$custom: #401770;
$custom-light: #7a599a;
$custom-dark: #000000;
JSON
{
  "hex": "#401770",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 112
  },
  "hsl": {
    "h": 267.64,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32363,
    "c": 0.14194,
    "h": 299.1
  },
  "luminance": 0.02873
}

Semantic roles & 50–950 ramp

primary
#401770
secondary
#76A63D
accent
#E93F9B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401770

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

Preview Lab → · Contrast checker → · Palette generator →

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