#401358#401358

#401358 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.120 H 310.9°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#401358
RGBrgb(64, 19, 88)
HSLhsl(279, 64%, 21%)
HSVhsv(279, 78%, 35%)
CMYKcmyk(27.3%, 78.4%, 0%, 65.5%)
CIE-LABlab(16.80, 34.10, -32.00)
CIE-LCHlch(16.80, 46.77, 316.82°)
OKLaboklab(29.79% 0.0786 -0.0906)
OKLCHoklch(29.79% 0.12 310.9)
XYZxyz(4.1083, 2.2604, 9.4505)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401358 #2B5813
analogous
#1D1358 #401358 #58134D
triadic
#401358 #584013 #135840
tetradic
#401358 #581D13 #2B5813 #134D58
square
#401358 #581D13 #2B5813 #134D58
split-complementary
#401358 #4D5813 #13581D
monochromatic
#120519 #1B0826 #401358 #651E8A #8929BD

Accessibility & contrast

On white

14.46
#401358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#401358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401358
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401358#FFFFFF#000000##FFFFFF
##4013581.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#072A57
Tritanopia (blue-blind)
#3D2334
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401358;
/* rgb */ color: rgb(64, 19, 88);
/* oklch */ color: oklch(29.8% 0.120 310.9);
Tailwind
colors: {
  custom: {
    50: '#785688',
    500: '#401358',
    950: '#000000',
  },
}
SCSS
$custom: #401358;
$custom-light: #785688;
$custom-dark: #000000;
JSON
{
  "hex": "#401358",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 279.13,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29791,
    "c": 0.11988,
    "h": 310.9
  },
  "luminance": 0.0226
}

Semantic roles & 50–950 ramp

primary
#401358
secondary
#569037
accent
#E7407A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401358

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

Preview Lab → · Contrast checker → · Palette generator →

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