#401B74#401B74

#401B74 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.142 H 296.8°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#401B74
RGBrgb(64, 27, 116)
HSLhsl(265, 62%, 28%)
HSVhsv(265, 77%, 45%)
CMYKcmyk(44.8%, 76.7%, 0%, 54.5%)
CIE-LABlab(20.58, 37.57, -44.27)
CIE-LCHlch(20.58, 58.06, 310.33°)
OKLaboklab(33.21% 0.064 -0.1267)
OKLCHoklch(33.21% 0.142 296.8)
XYZxyz(5.6578, 3.1347, 16.8266)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B74 #4F741B
analogous
#1B2274 #401B74 #6C1B74
triadic
#401B74 #74401B #1B7440
tetradic
#401B74 #741B22 #4F741B #1B746C
square
#401B74 #741B22 #4F741B #1B746C
split-complementary
#401B74 #746C1B #22741B
monochromatic
#0E0619 #250F42 #401B74 #5B27A6 #7839D1

Accessibility & contrast

On white

12.91
#401B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#401B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B74
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B74#FFFFFF#000000##FFFFFF
##401B741.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#323246
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401b74;
/* rgb */ color: rgb(64, 27, 116);
/* oklch */ color: oklch(33.2% 0.142 296.8);
Tailwind
colors: {
  custom: {
    50: '#7a5b9d',
    500: '#401b74',
    950: '#000000',
  },
}
SCSS
$custom: #401b74;
$custom-light: #7a5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#401b74",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 264.944,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33214,
    "c": 0.14193,
    "h": 296.8
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#401B74
secondary
#7EA942
accent
#E542A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401B74

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

Preview Lab → · Contrast checker → · Palette generator →

#401B74 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva