#401E5E#401E5E

#401E5E is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.8% C 0.111 H 305.4°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#401E5E
RGBrgb(64, 30, 94)
HSLhsl(272, 52%, 24%)
HSVhsv(272, 68%, 37%)
CMYKcmyk(31.9%, 68.1%, 0%, 63.1%)
CIE-LABlab(19.34, 29.88, -31.91)
CIE-LCHlch(19.34, 43.72, 313.12°)
OKLaboklab(31.76% 0.0642 -0.0904)
OKLCHoklch(31.76% 0.111 305.4)
XYZxyz(4.5986, 2.8267, 10.8909)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E5E #3C5E1E
analogous
#201E5E #401E5E #5E1E5C
triadic
#401E5E #5E401E #1E5E40
tetradic
#401E5E #5E201E #3C5E1E #1E5C5E
square
#401E5E #5E201E #3C5E1E #1E5C5E
split-complementary
#401E5E #5C5E1E #1E5E20
monochromatic
#100717 #200F30 #401E5E #602D8C #7F3CBB

Accessibility & contrast

On white

13.42
#401E5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#401E5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E5E
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E5E#FFFFFF#000000##FFFFFF
##401E5E1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#0E2F5D
Tritanopia (blue-blind)
#3B2B3B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401e5e;
/* rgb */ color: rgb(64, 30, 94);
/* oklch */ color: oklch(31.8% 0.111 305.4);
Tailwind
colors: {
  custom: {
    50: '#785c8c',
    500: '#401e5e',
    950: '#000000',
  },
}
SCSS
$custom: #401e5e;
$custom-light: #785c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#401e5e",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 94
  },
  "hsl": {
    "h": 271.875,
    "s": 51.613,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31757,
    "c": 0.11085,
    "h": 305.4
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

primary
#401E5E
secondary
#699345
accent
#DB4D8F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401E5E

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

Preview Lab → · Contrast checker → · Palette generator →

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