#401A5E#401A5E

#401A5E is a dark, moderate violet. Relative luminance 0.026; OKLCH L 31.2% C 0.117 H 306.4°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#401A5E
RGBrgb(64, 26, 94)
HSLhsl(274, 57%, 24%)
HSVhsv(274, 72%, 37%)
CMYKcmyk(31.9%, 72.3%, 0%, 63.1%)
CIE-LABlab(18.53, 32.11, -33.22)
CIE-LCHlch(18.53, 46.20, 314.02°)
OKLaboklab(31.17% 0.0694 -0.0942)
OKLCHoklch(31.17% 0.117 306.4)
XYZxyz(4.5037, 2.6370, 10.8592)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A5E #385E1A
analogous
#1E1A5E #401A5E #5E1A5A
triadic
#401A5E #5E401A #1A5E40
tetradic
#401A5E #5E1E1A #385E1A #1A5A5E
square
#401A5E #5E1E1A #385E1A #1A5A5E
split-complementary
#401A5E #5A5E1A #1A5E1E
monochromatic
#100718 #1F0D2E #401A5E #61278E #8135BE

Accessibility & contrast

On white

13.75
#401A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401A5E
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A5E#FFFFFF#000000##FFFFFF
##401A5E1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#072D5D
Tritanopia (blue-blind)
#3B2939
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401a5e;
/* rgb */ color: rgb(64, 26, 94);
/* oklch */ color: oklch(31.2% 0.117 306.4);
Tailwind
colors: {
  custom: {
    50: '#785a8c',
    500: '#401a5e',
    950: '#000000',
  },
}
SCSS
$custom: #401a5e;
$custom-light: #785a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#401a5e",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 94
  },
  "hsl": {
    "h": 273.529,
    "s": 56.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31174,
    "c": 0.11697,
    "h": 306.4
  },
  "luminance": 0.02637
}

Semantic roles & 50–950 ramp

primary
#401A5E
secondary
#659440
accent
#E0488B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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