#401B5D#401B5D

#401B5D is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.2% C 0.114 H 306.6°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#401B5D
RGBrgb(64, 27, 93)
HSLhsl(274, 55%, 24%)
HSVhsv(274, 71%, 36%)
CMYKcmyk(31.2%, 71%, 0%, 63.5%)
CIE-LABlab(18.65, 31.30, -32.36)
CIE-LCHlch(18.65, 45.02, 314.04°)
OKLaboklab(31.24% 0.0682 -0.0917)
OKLCHoklch(31.24% 0.114 306.6)
XYZxyz(4.4816, 2.6642, 10.6320)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B5D #385D1B
analogous
#1F1B5D #401B5D #5D1B59
triadic
#401B5D #5D401B #1B5D40
tetradic
#401B5D #5D1F1B #385D1B #1B595D
square
#401B5D #5D1F1B #385D1B #1B595D
split-complementary
#401B5D #595D1B #1B5D1F
monochromatic
#100718 #1F0D2E #401B5D #61298C #8137BC

Accessibility & contrast

On white

13.70
#401B5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#401B5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B5D
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B5D#FFFFFF#000000##FFFFFF
##401B5D1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#0B2E5C
Tritanopia (blue-blind)
#3B2939
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401b5d;
/* rgb */ color: rgb(64, 27, 93);
/* oklch */ color: oklch(31.2% 0.114 306.6);
Tailwind
colors: {
  custom: {
    50: '#785a8b',
    500: '#401b5d',
    950: '#000000',
  },
}
SCSS
$custom: #401b5d;
$custom-light: #785a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#401b5d",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 93
  },
  "hsl": {
    "h": 273.636,
    "s": 55,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31235,
    "c": 0.11427,
    "h": 306.6
  },
  "luminance": 0.02664
}

Semantic roles & 50–950 ramp

primary
#401B5D
secondary
#659341
accent
#DE498B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401B5D

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

Preview Lab → · Contrast checker → · Palette generator →

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