#401D62#401D62

#401D62 is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.9% C 0.117 H 303.7°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#401D62
RGBrgb(64, 29, 98)
HSLhsl(270, 54%, 25%)
HSVhsv(270, 70%, 38%)
CMYKcmyk(34.7%, 70.4%, 0%, 61.6%)
CIE-LABlab(19.44, 31.53, -34.40)
CIE-LCHlch(19.44, 46.67, 312.51°)
OKLaboklab(31.92% 0.0651 -0.0977)
OKLCHoklch(31.92% 0.117 303.7)
XYZxyz(4.7578, 2.8506, 11.8525)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D62 #3F621D
analogous
#1E1D62 #401D62 #621D62
triadic
#401D62 #62401D #1D6240
tetradic
#401D62 #621E1D #3F621D #1D6262
square
#401D62 #621E1D #3F621D #1D6262
split-complementary
#401D62 #62621D #1D621E
monochromatic
#0F0718 #210F33 #401D62 #5F2B91 #7E39C0

Accessibility & contrast

On white

13.37
#401D62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401D62
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D62#FFFFFF#000000##FFFFFF
##401D621.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E64
Deuteranopia (green-blind)
#052F61
Tritanopia (blue-blind)
#392C3C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401d62;
/* rgb */ color: rgb(64, 29, 98);
/* oklch */ color: oklch(31.9% 0.117 303.7);
Tailwind
colors: {
  custom: {
    50: '#785c8f',
    500: '#401d62',
    950: '#000000',
  },
}
SCSS
$custom: #401d62;
$custom-light: #785c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#401d62",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 98
  },
  "hsl": {
    "h": 270.435,
    "s": 54.331,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31925,
    "c": 0.11739,
    "h": 303.7
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

primary
#401D62
secondary
#6D9744
accent
#DE4A93
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401D62

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

Preview Lab → · Contrast checker → · Palette generator →

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