#401E6B#401E6B

#401E6B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.127 H 299.5°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#401E6B
RGBrgb(64, 30, 107)
HSLhsl(266, 56%, 27%)
HSVhsv(266, 72%, 42%)
CMYKcmyk(40.2%, 72%, 0%, 58%)
CIE-LABlab(20.36, 33.47, -38.79)
CIE-LCHlch(20.36, 51.23, 310.79°)
OKLaboklab(32.82% 0.0627 -0.1106)
OKLCHoklch(32.82% 0.127 299.5)
XYZxyz(5.2318, 3.0800, 14.2259)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E6B #496B1E
analogous
#1E226B #401E6B #671E6B
triadic
#401E6B #6B401E #1E6B40
tetradic
#401E6B #6B1E22 #496B1E #1E6B67
square
#401E6B #6B1E22 #496B1E #1E6B67
split-complementary
#401E6B #6B671E #226B1E
monochromatic
#0E0718 #23113B #401E6B #5D2B9B #793BC8

Accessibility & contrast

On white

13.00
#401E6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#401E6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E6B
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E6B#FFFFFF#000000##FFFFFF
##401E6B1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#363042
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401e6b;
/* rgb */ color: rgb(64, 30, 107);
/* oklch */ color: oklch(32.8% 0.127 299.5);
Tailwind
colors: {
  custom: {
    50: '#795d96',
    500: '#401e6b',
    950: '#000000',
  },
}
SCSS
$custom: #401e6b;
$custom-light: #795d96;
$custom-dark: #000000;
JSON
{
  "hex": "#401e6b",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 107
  },
  "hsl": {
    "h": 266.494,
    "s": 56.204,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32819,
    "c": 0.12711,
    "h": 299.5
  },
  "luminance": 0.0308
}

Semantic roles & 50–950 ramp

primary
#401E6B
secondary
#789F45
accent
#DF489D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401E6B

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

Preview Lab → · Contrast checker → · Palette generator →

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