#403188#403188

#403188 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.3% C 0.139 H 285.7°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#403188
RGBrgb(64, 49, 136)
HSLhsl(250, 47%, 36%)
HSVhsv(250, 64%, 53%)
CMYKcmyk(52.9%, 64%, 0%, 46.7%)
CIE-LABlab(26.92, 30.95, -46.59)
CIE-LCHlch(26.92, 55.93, 303.60°)
OKLaboklab(38.3% 0.0376 -0.1335)
OKLCHoklch(38.3% 0.139 285.7)
XYZxyz(7.6553, 5.0638, 23.8618)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403188 #798831
analogous
#314E88 #403188 #6C3188
triadic
#403188 #884031 #318840
tetradic
#403188 #88314E #798831 #31886C
square
#403188 #88314E #798831 #31886C
split-complementary
#403188 #886C31 #4E8831
monochromatic
#16112E #2B215B #403188 #5541B5 #7A6AC9

Accessibility & contrast

On white

10.43
#403188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403188
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403188#FFFFFF#000000##FFFFFF
##4031881.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#244657
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #403188;
/* rgb */ color: rgb(64, 49, 136);
/* oklch */ color: oklch(38.3% 0.139 285.7);
Tailwind
colors: {
  custom: {
    50: '#7c6aab',
    500: '#403188',
    950: '#000000',
  },
}
SCSS
$custom: #403188;
$custom-light: #7c6aab;
$custom-dark: #000000;
JSON
{
  "hex": "#403188",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 136
  },
  "hsl": {
    "h": 250.345,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.383,
    "c": 0.13871,
    "h": 285.7
  },
  "luminance": 0.05064
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403188

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

Preview Lab → · Contrast checker → · Palette generator →

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