#403285#403285

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

Color values

HEX#403285
RGBrgb(64, 50, 133)
HSLhsl(250, 45%, 36%)
HSVhsv(250, 62%, 52%)
CMYKcmyk(51.9%, 62.4%, 0%, 47.8%)
CIE-LABlab(26.92, 29.35, -44.72)
CIE-LCHlch(26.92, 53.49, 303.28°)
OKLaboklab(38.23% 0.0367 -0.128)
OKLCHoklch(38.23% 0.133 286)
XYZxyz(7.4873, 5.0643, 22.7687)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403285 #778532
analogous
#324D85 #403285 #693285
triadic
#403285 #854032 #328540
tetradic
#403285 #85324D #778532 #328569
square
#403285 #85324D #778532 #328569
split-complementary
#403285 #856932 #4D8532
monochromatic
#15112C #2B2159 #403285 #5543B1 #7A6AC7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##403285#FFFFFF#000000##FFFFFF
##4032851.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)
#004288
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#274556
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #403285;
/* rgb */ color: rgb(64, 50, 133);
/* oklch */ color: oklch(38.2% 0.133 286.0);
Tailwind
colors: {
  custom: {
    50: '#7b6aa9',
    500: '#403285',
    950: '#000000',
  },
}
SCSS
$custom: #403285;
$custom-light: #7b6aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#403285",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 133
  },
  "hsl": {
    "h": 250.12,
    "s": 45.355,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38226,
    "c": 0.13316,
    "h": 286
  },
  "luminance": 0.05065
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403285

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

Preview Lab → · Contrast checker → · Palette generator →

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