#401368#401368

#401368 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.137 H 303.0°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#401368
RGBrgb(64, 19, 104)
HSLhsl(272, 69%, 24%)
HSVhsv(272, 82%, 41%)
CMYKcmyk(38.5%, 81.7%, 0%, 59.2%)
CIE-LABlab(18.17, 38.13, -40.41)
CIE-LCHlch(18.17, 55.55, 313.34°)
OKLaboklab(31.18% 0.0749 -0.1153)
OKLCHoklch(31.18% 0.137 303)
XYZxyz(4.8453, 2.5552, 13.3320)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401368 #3B6813
analogous
#161368 #401368 #681366
triadic
#401368 #684013 #136840
tetradic
#401368 #681613 #3B6813 #136668
square
#401368 #681613 #3B6813 #136668
split-complementary
#401368 #666813 #136816
monochromatic
#10051A #200A34 #401368 #601C9C #8026CF

Accessibility & contrast

On white

13.90
#401368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#401368 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401368
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401368#FFFFFF#000000##FFFFFF
##4013681.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#38293D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401368;
/* rgb */ color: rgb(64, 19, 104);
/* oklch */ color: oklch(31.2% 0.137 303.0);
Tailwind
colors: {
  custom: {
    50: '#795794',
    500: '#401368',
    950: '#000000',
  },
}
SCSS
$custom: #401368;
$custom-light: #795794;
$custom-dark: #000000;
JSON
{
  "hex": "#401368",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 104
  },
  "hsl": {
    "h": 271.765,
    "s": 69.106,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31184,
    "c": 0.13746,
    "h": 303
  },
  "luminance": 0.02555
}

Semantic roles & 50–950 ramp

primary
#401368
secondary
#689F37
accent
#EC3C8F
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #401368

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

Preview Lab → · Contrast checker → · Palette generator →

#401368 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva