#401367#401367

#401367 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.136 H 303.5°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#401367
RGBrgb(64, 19, 103)
HSLhsl(272, 69%, 24%)
HSVhsv(272, 82%, 40%)
CMYKcmyk(37.9%, 81.6%, 0%, 59.6%)
CIE-LABlab(18.08, 37.87, -39.90)
CIE-LCHlch(18.08, 55.01, 313.51°)
OKLaboklab(31.09% 0.0752 -0.1138)
OKLCHoklch(31.09% 0.136 303.5)
XYZxyz(4.7948, 2.5350, 13.0660)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401367 #3A6713
analogous
#161367 #401367 #671364
triadic
#401367 #674013 #136740
tetradic
#401367 #671613 #3A6713 #136467
square
#401367 #671613 #3A6713 #136467
split-complementary
#401367 #646713 #136716
monochromatic
#10051A #200933 #401367 #601D9B #8026CE

Accessibility & contrast

On white

13.93
#401367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401367
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401367#FFFFFF#000000##FFFFFF
##4013671.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401367;
/* rgb */ color: rgb(64, 19, 103);
/* oklch */ color: oklch(31.1% 0.136 303.5);
Tailwind
colors: {
  custom: {
    50: '#795693',
    500: '#401367',
    950: '#000000',
  },
}
SCSS
$custom: #401367;
$custom-light: #795693;
$custom-dark: #000000;
JSON
{
  "hex": "#401367",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 103
  },
  "hsl": {
    "h": 272.143,
    "s": 68.852,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31092,
    "c": 0.13636,
    "h": 303.5
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

primary
#401367
secondary
#679E37
accent
#EC3C8E
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #401367

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

Preview Lab → · Contrast checker → · Palette generator →

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