#401870#401870

#401870 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.141 H 298.9°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#401870
RGBrgb(64, 24, 112)
HSLhsl(267, 65%, 27%)
HSVhsv(267, 79%, 44%)
CMYKcmyk(42.9%, 78.6%, 0%, 56.1%)
CIE-LABlab(19.69, 37.95, -43.13)
CIE-LCHlch(19.69, 57.45, 311.35°)
OKLaboklab(32.48% 0.068 -0.1233)
OKLCHoklch(32.48% 0.141 298.9)
XYZxyz(5.3649, 2.9130, 15.6057)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401870 #487018
analogous
#181C70 #401870 #6C1870
triadic
#401870 #704018 #187040
tetradic
#401870 #70181C #487018 #18706C
square
#401870 #70181C #487018 #18706C
split-complementary
#401870 #706C18 #1C7018
monochromatic
#0E0519 #230D3E #401870 #5D23A2 #7A30D3

Accessibility & contrast

On white

13.27
#401870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#401870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401870
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401870#FFFFFF#000000##FFFFFF
##4018701.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.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: #401870;
/* rgb */ color: rgb(64, 24, 112);
/* oklch */ color: oklch(32.5% 0.141 298.9);
Tailwind
colors: {
  custom: {
    50: '#7a599a',
    500: '#401870',
    950: '#000000',
  },
}
SCSS
$custom: #401870;
$custom-light: #7a599a;
$custom-dark: #000000;
JSON
{
  "hex": "#401870",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 267.273,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32479,
    "c": 0.14079,
    "h": 298.9
  },
  "luminance": 0.02913
}

Semantic roles & 50–950 ramp

primary
#401870
secondary
#77A53E
accent
#E8409C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401870

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

Preview Lab → · Contrast checker → · Palette generator →

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