#403160#403160

#403160 is a dark, moderate violet. Relative luminance 0.041; OKLCH L 35.3% C 0.081 H 296.8°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#403160
RGBrgb(64, 49, 96)
HSLhsl(259, 32%, 28%)
HSVhsv(259, 49%, 38%)
CMYKcmyk(33.3%, 49%, 0%, 62.4%)
CIE-LABlab(24.10, 18.46, -25.62)
CIE-LCHlch(24.10, 31.58, 305.77°)
OKLaboklab(35.32% 0.0363 -0.072)
OKLCHoklch(35.32% 0.081 296.8)
XYZxyz(5.3235, 4.1311, 11.5810)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403160 #516031
analogous
#313960 #403160 #573160
triadic
#403160 #604031 #316040
tetradic
#403160 #603139 #516031 #316057
square
#403160 #603139 #516031 #316057
split-complementary
#403160 #605731 #396031
monochromatic
#0E0A14 #251C37 #403160 #5B4689 #775EAD

Accessibility & contrast

On white

11.50
#403160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#403160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403160
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403160#FFFFFF#000000##FFFFFF
##4031601.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223A62
Deuteranopia (green-blind)
#25395F
Tritanopia (blue-blind)
#393A44
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #403160;
/* rgb */ color: rgb(64, 49, 96);
/* oklch */ color: oklch(35.3% 0.081 296.8);
Tailwind
colors: {
  custom: {
    50: '#76698d',
    500: '#403160',
    950: '#000000',
  },
}
SCSS
$custom: #403160;
$custom-light: #76698d;
$custom-dark: #000000;
JSON
{
  "hex": "#403160",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 96
  },
  "hsl": {
    "h": 259.149,
    "s": 32.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35316,
    "c": 0.08064,
    "h": 296.8
  },
  "luminance": 0.04131
}

Semantic roles & 50–950 ramp

primary
#403160
secondary
#80915C
accent
#C95FA7
background
#F7F6F8
surface
#EDEBF0
border
#C8C6CB
text
#09060C
muted
#7B7A7D

Preview Lab

Preview with #403160

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

Preview Lab → · Contrast checker → · Palette generator →

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