#401956#401956

#401956 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.4% C 0.109 H 311.0°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#401956
RGBrgb(64, 25, 86)
HSLhsl(278, 55%, 22%)
HSVhsv(278, 71%, 34%)
CMYKcmyk(25.6%, 70.9%, 0%, 66.3%)
CIE-LABlab(17.72, 30.58, -29.16)
CIE-LCHlch(17.72, 42.26, 316.36°)
OKLaboklab(30.4% 0.0714 -0.0823)
OKLCHoklch(30.4% 0.109 311)
XYZxyz(4.1414, 2.4572, 9.0584)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401956 #2F5619
analogous
#221956 #401956 #56194E
triadic
#401956 #564019 #195640
tetradic
#401956 #562219 #2F5619 #194E56
square
#401956 #562219 #2F5619 #194E56
split-complementary
#401956 #4E5619 #195622
monochromatic
#120718 #1D0B27 #401956 #632785 #8735B5

Accessibility & contrast

On white

14.08
#401956 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#401956 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401956
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401956#FFFFFF#000000##FFFFFF
##4019561.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#122C55
Tritanopia (blue-blind)
#3D2535
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401956;
/* rgb */ color: rgb(64, 25, 86);
/* oklch */ color: oklch(30.4% 0.109 311.0);
Tailwind
colors: {
  custom: {
    50: '#775986',
    500: '#401956',
    950: '#000000',
  },
}
SCSS
$custom: #401956;
$custom-light: #775986;
$custom-dark: #000000;
JSON
{
  "hex": "#401956",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 86
  },
  "hsl": {
    "h": 278.361,
    "s": 54.955,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30404,
    "c": 0.10895,
    "h": 311
  },
  "luminance": 0.02457
}

Semantic roles & 50–950 ramp

primary
#401956
secondary
#5B8C3E
accent
#DE4A7F
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401956

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

Preview Lab → · Contrast checker → · Palette generator →

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