#401B5F#401B5F

#401B5F is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.4% C 0.117 H 305.6°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#401B5F
RGBrgb(64, 27, 95)
HSLhsl(273, 56%, 24%)
HSVhsv(273, 72%, 37%)
CMYKcmyk(32.6%, 71.6%, 0%, 62.7%)
CIE-LABlab(18.80, 31.83, -33.44)
CIE-LCHlch(18.80, 46.17, 313.59°)
OKLaboklab(31.4% 0.068 -0.0948)
OKLCHoklch(31.4% 0.117 305.6)
XYZxyz(4.5714, 2.7001, 11.1046)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B5F #3A5F1B
analogous
#1E1B5F #401B5F #5F1B5C
triadic
#401B5F #5F401B #1B5F40
tetradic
#401B5F #5F1E1B #3A5F1B #1B5C5F
square
#401B5F #5F1E1B #3A5F1B #1B5C5F
split-complementary
#401B5F #5C5F1B #1B5F1E
monochromatic
#100718 #200D2F #401B5F #60298F #8036BE

Accessibility & contrast

On white

13.64
#401B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#401B5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B5F
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B5F#FFFFFF#000000##FFFFFF
##401B5F1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#072E5E
Tritanopia (blue-blind)
#3B2A3A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401b5f;
/* rgb */ color: rgb(64, 27, 95);
/* oklch */ color: oklch(31.4% 0.117 305.6);
Tailwind
colors: {
  custom: {
    50: '#785a8d',
    500: '#401b5f',
    950: '#000000',
  },
}
SCSS
$custom: #401b5f;
$custom-light: #785a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#401b5f",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 95
  },
  "hsl": {
    "h": 272.647,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31395,
    "c": 0.1167,
    "h": 305.6
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#401B5F
secondary
#679541
accent
#DF498D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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