#403187#403187

#403187 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.137 H 285.9°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#403187
RGBrgb(64, 49, 135)
HSLhsl(250, 47%, 36%)
HSVhsv(250, 64%, 53%)
CMYKcmyk(52.6%, 63.7%, 0%, 47.1%)
CIE-LABlab(26.84, 30.62, -46.10)
CIE-LCHlch(26.84, 55.34, 303.60°)
OKLaboklab(38.22% 0.0377 -0.1321)
OKLCHoklch(38.22% 0.137 285.9)
XYZxyz(7.5845, 5.0355, 23.4893)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403187 #788731
analogous
#314D87 #403187 #6B3187
triadic
#403187 #874031 #318740
tetradic
#403187 #87314D #788731 #31876B
square
#403187 #87314D #788731 #31876B
split-complementary
#403187 #876B31 #4D8731
monochromatic
#15102D #2B215A #403187 #5541B4 #7A6AC9

Accessibility & contrast

On white

10.46
#403187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#403187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403187
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403187#FFFFFF#000000##FFFFFF
##4031871.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#254557
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #403187;
/* rgb */ color: rgb(64, 49, 135);
/* oklch */ color: oklch(38.2% 0.137 285.9);
Tailwind
colors: {
  custom: {
    50: '#7b6aab',
    500: '#403187',
    950: '#000000',
  },
}
SCSS
$custom: #403187;
$custom-light: #7b6aab;
$custom-dark: #000000;
JSON
{
  "hex": "#403187",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 135
  },
  "hsl": {
    "h": 250.465,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38216,
    "c": 0.13734,
    "h": 285.9
  },
  "luminance": 0.05036
}

Semantic roles & 50–950 ramp

primary
#403187
secondary
#A3B064
accent
#D651BF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #403187

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

Preview Lab → · Contrast checker → · Palette generator →

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