#401E68#401E68

#401E68 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.123 H 300.8°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#401E68
RGBrgb(64, 30, 104)
HSLhsl(268, 55%, 26%)
HSVhsv(268, 71%, 41%)
CMYKcmyk(38.5%, 71.2%, 0%, 59.2%)
CIE-LABlab(20.12, 32.63, -37.24)
CIE-LCHlch(20.12, 49.51, 311.23°)
OKLaboklab(32.57% 0.0631 -0.106)
OKLCHoklch(32.57% 0.123 300.8)
XYZxyz(5.0767, 3.0180, 13.4091)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E68 #46681E
analogous
#1E2168 #401E68 #651E68
triadic
#401E68 #68401E #1E6840
tetradic
#401E68 #681E21 #46681E #1E6865
square
#401E68 #681E21 #46681E #1E6865
split-complementary
#401E68 #68651E #21681E
monochromatic
#0F0718 #231039 #401E68 #5D2C98 #7B3AC6

Accessibility & contrast

On white

13.10
#401E68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#401E68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E68
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E68#FFFFFF#000000##FFFFFF
##401E681.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#003066
Tritanopia (blue-blind)
#372F40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401e68;
/* rgb */ color: rgb(64, 30, 104);
/* oklch */ color: oklch(32.6% 0.123 300.8);
Tailwind
colors: {
  custom: {
    50: '#795c94',
    500: '#401e68',
    950: '#000000',
  },
}
SCSS
$custom: #401e68;
$custom-light: #795c94;
$custom-dark: #000000;
JSON
{
  "hex": "#401e68",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 104
  },
  "hsl": {
    "h": 267.568,
    "s": 55.224,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32565,
    "c": 0.12338,
    "h": 300.8
  },
  "luminance": 0.03018
}

Semantic roles & 50–950 ramp

primary
#401E68
secondary
#749D45
accent
#DF499A
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401E68

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

Preview Lab → · Contrast checker → · Palette generator →

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