#401B7D#401B7D

#401B7D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.153 H 293.8°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#401B7D
RGBrgb(64, 27, 125)
HSLhsl(263, 64%, 30%)
HSVhsv(263, 78%, 49%)
CMYKcmyk(48.8%, 78.4%, 0%, 51%)
CIE-LABlab(21.41, 40.10, -48.65)
CIE-LCHlch(21.41, 63.05, 309.49°)
OKLaboklab(34.06% 0.0616 -0.1395)
OKLCHoklch(34.06% 0.153 293.8)
XYZxyz(6.2069, 3.3543, 19.7185)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B7D #587D1B
analogous
#1B277D #401B7D #711B7D
triadic
#401B7D #7D401B #1B7D40
tetradic
#401B7D #7D1B27 #587D1B #1B7D71
square
#401B7D #7D1B27 #587D1B #1B7D71
split-complementary
#401B7D #7D711B #277D1B
monochromatic
#0D0519 #26104B #401B7D #5A26AF #773DD5

Accessibility & contrast

On white

12.57
#401B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#401B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B7D
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B7D#FFFFFF#000000##FFFFFF
##401B7D1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#2E364B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401b7d;
/* rgb */ color: rgb(64, 27, 125);
/* oklch */ color: oklch(34.1% 0.153 293.8);
Tailwind
colors: {
  custom: {
    50: '#7c5ca4',
    500: '#401b7d',
    950: '#000000',
  },
}
SCSS
$custom: #401b7d;
$custom-light: #7c5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#401b7d",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 262.653,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34059,
    "c": 0.15254,
    "h": 293.8
  },
  "luminance": 0.03355
}

Semantic roles & 50–950 ramp

primary
#401B7D
secondary
#87B143
accent
#E740A8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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