#403189#403189

#403189 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.4% C 0.140 H 285.5°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#403189
RGBrgb(64, 49, 137)
HSLhsl(250, 47%, 36%)
HSVhsv(250, 64%, 54%)
CMYKcmyk(53.3%, 64.2%, 0%, 46.3%)
CIE-LABlab(27.00, 31.27, -47.08)
CIE-LCHlch(27.00, 56.52, 303.59°)
OKLaboklab(38.38% 0.0375 -0.135)
OKLCHoklch(38.38% 0.14 285.5)
XYZxyz(7.7267, 5.0924, 24.2378)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403189 #7A8931
analogous
#314E89 #403189 #6C3189
triadic
#403189 #894031 #318940
tetradic
#403189 #89314E #7A8931 #31896C
square
#403189 #89314E #7A8931 #31896C
split-complementary
#403189 #896C31 #4E8931
monochromatic
#16112F #2B215C #403189 #5541B6 #7B6BCA

Accessibility & contrast

On white

10.40
#403189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#403189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403189
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403189#FFFFFF#000000##FFFFFF
##4031891.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#244658
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #403189;
/* rgb */ color: rgb(64, 49, 137);
/* oklch */ color: oklch(38.4% 0.140 285.5);
Tailwind
colors: {
  custom: {
    50: '#7c6aac',
    500: '#403189',
    950: '#000000',
  },
}
SCSS
$custom: #403189;
$custom-light: #7c6aac;
$custom-dark: #000000;
JSON
{
  "hex": "#403189",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 137
  },
  "hsl": {
    "h": 250.227,
    "s": 47.312,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38384,
    "c": 0.14009,
    "h": 285.5
  },
  "luminance": 0.05093
}

Semantic roles & 50–950 ramp

primary
#403189
secondary
#A4B164
accent
#D751C0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #403189

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

Preview Lab → · Contrast checker → · Palette generator →

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