#403185#403185

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

Color values

HEX#403185
RGBrgb(64, 49, 133)
HSLhsl(251, 46%, 36%)
HSVhsv(251, 63%, 52%)
CMYKcmyk(51.9%, 63.2%, 0%, 47.8%)
CIE-LABlab(26.68, 29.98, -45.11)
CIE-LCHlch(26.68, 54.16, 303.61°)
OKLaboklab(38.05% 0.0378 -0.1292)
OKLCHoklch(38.05% 0.135 286.3)
XYZxyz(7.4451, 4.9797, 22.7546)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403185 #768531
analogous
#314C85 #403185 #6A3185
triadic
#403185 #854031 #318540
tetradic
#403185 #85314C #768531 #31856A
square
#403185 #85314C #768531 #31856A
split-complementary
#403185 #856A31 #4C8531
monochromatic
#15102C #2A2158 #403185 #5641B2 #7A69C8

Accessibility & contrast

On white

10.52
#403185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#403185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403185
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403185#FFFFFF#000000##FFFFFF
##4031851.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004188
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#274556
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #403185;
/* rgb */ color: rgb(64, 49, 133);
/* oklch */ color: oklch(38.0% 0.135 286.3);
Tailwind
colors: {
  custom: {
    50: '#7b6aa9',
    500: '#403185',
    950: '#000000',
  },
}
SCSS
$custom: #403185;
$custom-light: #7b6aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#403185",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 133
  },
  "hsl": {
    "h": 250.714,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3805,
    "c": 0.13458,
    "h": 286.3
  },
  "luminance": 0.0498
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403185

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

Preview Lab → · Contrast checker → · Palette generator →

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