#403184#403184

#403184 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.0% C 0.133 H 286.5°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#403184
RGBrgb(64, 49, 132)
HSLhsl(251, 46%, 35%)
HSVhsv(251, 63%, 52%)
CMYKcmyk(51.5%, 62.9%, 0%, 48.2%)
CIE-LABlab(26.60, 29.66, -44.61)
CIE-LCHlch(26.60, 53.57, 303.62°)
OKLaboklab(37.97% 0.0378 -0.1277)
OKLCHoklch(37.97% 0.133 286.5)
XYZxyz(7.3763, 4.9522, 22.3925)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403184 #758431
analogous
#314C84 #403184 #693184
triadic
#403184 #844031 #318440
tetradic
#403184 #84314C #758431 #318469
square
#403184 #84314C #758431 #318469
split-complementary
#403184 #846931 #4C8431
monochromatic
#15102B #2A2057 #403184 #5642B1 #7968C7

Accessibility & contrast

On white

10.55
#403184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#403184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403184
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403184#FFFFFF#000000##FFFFFF
##4031841.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004187
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#284455
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #403184;
/* rgb */ color: rgb(64, 49, 132);
/* oklch */ color: oklch(38.0% 0.133 286.5);
Tailwind
colors: {
  custom: {
    50: '#7b6aa8',
    500: '#403184',
    950: '#000000',
  },
}
SCSS
$custom: #403184;
$custom-light: #7b6aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#403184",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 132
  },
  "hsl": {
    "h": 250.843,
    "s": 45.856,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37968,
    "c": 0.1332,
    "h": 286.5
  },
  "luminance": 0.04953
}

Semantic roles & 50–950 ramp

primary
#403184
secondary
#A1AE62
accent
#D652BE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #403184

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

Preview Lab → · Contrast checker → · Palette generator →

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