#401E62#401E62

#401E62 is a dark, moderate violet. Relative luminance 0.029; OKLCH L 32.1% C 0.116 H 303.4°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#401E62
RGBrgb(64, 30, 98)
HSLhsl(270, 53%, 25%)
HSVhsv(270, 69%, 38%)
CMYKcmyk(34.7%, 69.4%, 0%, 61.6%)
CIE-LABlab(19.64, 30.97, -34.07)
CIE-LCHlch(19.64, 46.04, 312.27°)
OKLaboklab(32.07% 0.0639 -0.0967)
OKLCHoklch(32.07% 0.116 303.4)
XYZxyz(4.7827, 2.9004, 11.8608)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E62 #40621E
analogous
#1E1E62 #401E62 #621E62
triadic
#401E62 #62401E #1E6240
tetradic
#401E62 #621E1E #40621E #1E6262
square
#401E62 #621E1E #40621E #1E6262
split-complementary
#401E62 #62621E #1E621E
monochromatic
#0F0717 #211033 #401E62 #5F2C91 #7D3BC0

Accessibility & contrast

On white

13.29
#401E62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#401E62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E62
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E62#FFFFFF#000000##FFFFFF
##401E621.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#072F61
Tritanopia (blue-blind)
#392D3D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401e62;
/* rgb */ color: rgb(64, 30, 98);
/* oklch */ color: oklch(32.1% 0.116 303.4);
Tailwind
colors: {
  custom: {
    50: '#785c8f',
    500: '#401e62',
    950: '#000000',
  },
}
SCSS
$custom: #401e62;
$custom-light: #785c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#401e62",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 98
  },
  "hsl": {
    "h": 270,
    "s": 53.125,
    "l": 25.098
  },
  "oklch": {
    "l": 0.32073,
    "c": 0.11588,
    "h": 303.4
  },
  "luminance": 0.029
}

Semantic roles & 50–950 ramp

primary
#401E62
secondary
#6E9745
accent
#DD4B94
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401E62

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

Preview Lab → · Contrast checker → · Palette generator →

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