#403085#403085

#403085 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 37.9% C 0.136 H 286.6°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#403085
RGBrgb(64, 48, 133)
HSLhsl(251, 47%, 35%)
HSVhsv(251, 64%, 52%)
CMYKcmyk(51.9%, 63.9%, 0%, 47.8%)
CIE-LABlab(26.44, 30.61, -45.49)
CIE-LCHlch(26.44, 54.83, 303.94°)
OKLaboklab(37.88% 0.0389 -0.1303)
OKLCHoklch(37.88% 0.136 286.6)
XYZxyz(7.4037, 4.8970, 22.7409)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403085 #758530
analogous
#304A85 #403085 #6A3085
triadic
#403085 #854030 #308540
tetradic
#403085 #85304A #758530 #30856A
square
#403085 #85304A #758530 #30856A
split-complementary
#403085 #856A30 #4A8530
monochromatic
#15102B #2A2058 #403085 #5640B2 #7967C8

Accessibility & contrast

On white

10.61
#403085 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#403085 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403085
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403085#FFFFFF#000000##FFFFFF
##4030851.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403085;
/* rgb */ color: rgb(64, 48, 133);
/* oklch */ color: oklch(37.9% 0.136 286.6);
Tailwind
colors: {
  custom: {
    50: '#7b69a9',
    500: '#403085',
    950: '#000000',
  },
}
SCSS
$custom: #403085;
$custom-light: #7b69a9;
$custom-dark: #000000;
JSON
{
  "hex": "#403085",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 133
  },
  "hsl": {
    "h": 251.294,
    "s": 46.961,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37877,
    "c": 0.13599,
    "h": 286.6
  },
  "luminance": 0.04897
}

Semantic roles & 50–950 ramp

primary
#403085
secondary
#A1AF61
accent
#D751BD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #403085

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

Preview Lab → · Contrast checker → · Palette generator →

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