#401D63#401D63

#401D63 is a dark, moderate violet. Relative luminance 0.029; OKLCH L 32.0% C 0.119 H 303.2°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#401D63
RGBrgb(64, 29, 99)
HSLhsl(270, 55%, 25%)
HSVhsv(270, 71%, 39%)
CMYKcmyk(35.4%, 70.7%, 0%, 61.2%)
CIE-LABlab(19.51, 31.81, -34.93)
CIE-LCHlch(19.51, 47.24, 312.32°)
OKLaboklab(32.01% 0.065 -0.0992)
OKLCHoklch(32.01% 0.119 303.2)
XYZxyz(4.8053, 2.8696, 12.1027)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D63 #40631D
analogous
#1D1D63 #401D63 #631D63
triadic
#401D63 #63401D #1D6340
tetradic
#401D63 #631D1D #40631D #1D6363
square
#401D63 #631D1D #40631D #1D6363
split-complementary
#401D63 #63631D #1D631D
monochromatic
#0F0718 #210F34 #401D63 #5F2B92 #7D39C2

Accessibility & contrast

On white

13.34
#401D63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401D63
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D63#FFFFFF#000000##FFFFFF
##401D631.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F65
Deuteranopia (green-blind)
#032F61
Tritanopia (blue-blind)
#392D3D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401d63;
/* rgb */ color: rgb(64, 29, 99);
/* oklch */ color: oklch(32.0% 0.119 303.2);
Tailwind
colors: {
  custom: {
    50: '#785c90',
    500: '#401d63',
    950: '#000000',
  },
}
SCSS
$custom: #401d63;
$custom-light: #785c90;
$custom-dark: #000000;
JSON
{
  "hex": "#401d63",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 99
  },
  "hsl": {
    "h": 270,
    "s": 54.688,
    "l": 25.098
  },
  "oklch": {
    "l": 0.32007,
    "c": 0.11862,
    "h": 303.2
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#401D63
secondary
#6E9844
accent
#DE4A94
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401D63

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

Preview Lab → · Contrast checker → · Palette generator →

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