#401670#401670

#401670 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.143 H 299.2°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#401670
RGBrgb(64, 22, 112)
HSLhsl(268, 67%, 26%)
HSVhsv(268, 80%, 44%)
CMYKcmyk(42.9%, 80.4%, 0%, 56.1%)
CIE-LABlab(19.36, 38.89, -43.66)
CIE-LCHlch(19.36, 58.47, 311.69°)
OKLaboklab(32.25% 0.0699 -0.1248)
OKLCHoklch(32.25% 0.143 299.2)
XYZxyz(5.3251, 2.8336, 15.5925)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401670 #467016
analogous
#161970 #401670 #6D1670
triadic
#401670 #704016 #167040
tetradic
#401670 #701619 #467016 #16706D
square
#401670 #701619 #467016 #16706D
split-complementary
#401670 #706D16 #197016
monochromatic
#0F051A #230C3D #401670 #5D20A3 #7B2BD5

Accessibility & contrast

On white

13.40
#401670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401670
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401670#FFFFFF#000000##FFFFFF
##4016701.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401670;
/* rgb */ color: rgb(64, 22, 112);
/* oklch */ color: oklch(32.2% 0.143 299.2);
Tailwind
colors: {
  custom: {
    50: '#7a589a',
    500: '#401670',
    950: '#000000',
  },
}
SCSS
$custom: #401670;
$custom-light: #7a589a;
$custom-dark: #000000;
JSON
{
  "hex": "#401670",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 268,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32249,
    "c": 0.14307,
    "h": 299.2
  },
  "luminance": 0.02834
}

Semantic roles & 50–950 ramp

primary
#401670
secondary
#74A63C
accent
#EA3E9A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401670

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

Preview Lab → · Contrast checker → · Palette generator →

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