#401674#401674

#401674 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.148 H 297.7°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#401674
RGBrgb(64, 22, 116)
HSLhsl(267, 68%, 27%)
HSVhsv(267, 81%, 45%)
CMYKcmyk(44.8%, 81%, 0%, 54.5%)
CIE-LABlab(19.74, 39.96, -45.63)
CIE-LCHlch(19.74, 60.66, 311.21°)
OKLaboklab(32.63% 0.0687 -0.1306)
OKLCHoklch(32.63% 0.148 297.7)
XYZxyz(5.5528, 2.9247, 16.7916)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401674 #4A7416
analogous
#161B74 #401674 #6F1674
triadic
#401674 #744016 #167440
tetradic
#401674 #74161B #4A7416 #16746F
square
#401674 #74161B #4A7416 #16746F
split-complementary
#401674 #746F16 #1B7416
monochromatic
#0E051A #240C41 #401674 #5C20A7 #792DD7

Accessibility & contrast

On white

13.25
#401674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401674
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401674#FFFFFF#000000##FFFFFF
##4016741.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#333045
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401674;
/* rgb */ color: rgb(64, 22, 116);
/* oklch */ color: oklch(32.6% 0.148 297.7);
Tailwind
colors: {
  custom: {
    50: '#7b599d',
    500: '#401674',
    950: '#000000',
  },
}
SCSS
$custom: #401674;
$custom-light: #7b599d;
$custom-dark: #000000;
JSON
{
  "hex": "#401674",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 266.809,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32627,
    "c": 0.14758,
    "h": 297.7
  },
  "luminance": 0.02925
}

Semantic roles & 50–950 ramp

primary
#401674
secondary
#79AA3C
accent
#EB3D9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401674

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

Preview Lab → · Contrast checker → · Palette generator →

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