#403284#403284

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

Color values

HEX#403284
RGBrgb(64, 50, 132)
HSLhsl(250, 45%, 36%)
HSVhsv(250, 62%, 52%)
CMYKcmyk(51.5%, 62.1%, 0%, 48.2%)
CIE-LABlab(26.84, 29.03, -44.22)
CIE-LCHlch(26.84, 52.89, 303.28°)
OKLaboklab(38.14% 0.0367 -0.1266)
OKLCHoklch(38.14% 0.132 286.2)
XYZxyz(7.4186, 5.0368, 22.4066)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403284 #768432
analogous
#324D84 #403284 #693284
triadic
#403284 #844032 #328440
tetradic
#403284 #84324D #768432 #328469
square
#403284 #84324D #768432 #328469
split-complementary
#403284 #846932 #4D8432
monochromatic
#15102B #2A2158 #403284 #5643B0 #7A6AC7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##403284#FFFFFF#000000##FFFFFF
##4032841.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)
#004287
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#274556
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #403284;
/* rgb */ color: rgb(64, 50, 132);
/* oklch */ color: oklch(38.1% 0.132 286.2);
Tailwind
colors: {
  custom: {
    50: '#7b6aa8',
    500: '#403284',
    950: '#000000',
  },
}
SCSS
$custom: #403284;
$custom-light: #7b6aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#403284",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 132
  },
  "hsl": {
    "h": 250.244,
    "s": 45.055,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38144,
    "c": 0.13177,
    "h": 286.2
  },
  "luminance": 0.05037
}

Semantic roles & 50–950 ramp

primary
#403284
secondary
#A1AE64
accent
#D553BF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #403284

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

Preview Lab → · Contrast checker → · Palette generator →

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