#401B5E#401B5E

#401B5E is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.3% C 0.115 H 306.1°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#401B5E
RGBrgb(64, 27, 94)
HSLhsl(273, 55%, 24%)
HSVhsv(273, 71%, 37%)
CMYKcmyk(31.9%, 71.3%, 0%, 63.1%)
CIE-LABlab(18.72, 31.57, -32.90)
CIE-LCHlch(18.72, 45.60, 313.81°)
OKLaboklab(31.32% 0.0681 -0.0933)
OKLCHoklch(31.32% 0.115 306.1)
XYZxyz(4.5262, 2.6820, 10.8667)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B5E #395E1B
analogous
#1E1B5E #401B5E #5E1B5A
triadic
#401B5E #5E401B #1B5E40
tetradic
#401B5E #5E1E1B #395E1B #1B5A5E
square
#401B5E #5E1E1B #395E1B #1B5A5E
split-complementary
#401B5E #5A5E1B #1B5E1E
monochromatic
#100718 #200D2E #401B5E #60298E #8136BD

Accessibility & contrast

On white

13.67
#401B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B5E
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B5E#FFFFFF#000000##FFFFFF
##401B5E1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#092E5D
Tritanopia (blue-blind)
#3B2A3A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401b5e;
/* rgb */ color: rgb(64, 27, 94);
/* oklch */ color: oklch(31.3% 0.115 306.1);
Tailwind
colors: {
  custom: {
    50: '#785a8c',
    500: '#401b5e',
    950: '#000000',
  },
}
SCSS
$custom: #401b5e;
$custom-light: #785a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#401b5e",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 94
  },
  "hsl": {
    "h": 273.134,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31315,
    "c": 0.11549,
    "h": 306.1
  },
  "luminance": 0.02682
}

Semantic roles & 50–950 ramp

primary
#401B5E
secondary
#669441
accent
#DF498C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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