#403281#403281

#403281 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 37.9% C 0.128 H 286.8°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#403281
RGBrgb(64, 50, 129)
HSLhsl(251, 44%, 35%)
HSVhsv(251, 61%, 51%)
CMYKcmyk(50.4%, 61.2%, 0%, 49.4%)
CIE-LABlab(26.61, 28.06, -42.71)
CIE-LCHlch(26.61, 51.11, 303.30°)
OKLaboklab(37.9% 0.0368 -0.1221)
OKLCHoklch(37.9% 0.128 286.8)
XYZxyz(7.2162, 4.9558, 21.3410)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403281 #738132
analogous
#324B81 #403281 #673281
triadic
#403281 #814032 #328140
tetradic
#403281 #81324B #738132 #328167
square
#403281 #81324B #738132 #328167
split-complementary
#403281 #816732 #4B8132
monochromatic
#141029 #2A2155 #403281 #5643AD #7969C5

Accessibility & contrast

On white

10.55
#403281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#403281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403281
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403281#FFFFFF#000000##FFFFFF
##4032811.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#2A4454
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #403281;
/* rgb */ color: rgb(64, 50, 129);
/* oklch */ color: oklch(37.9% 0.128 286.8);
Tailwind
colors: {
  custom: {
    50: '#7a6aa6',
    500: '#403281',
    950: '#000000',
  },
}
SCSS
$custom: #403281;
$custom-light: #7a6aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#403281",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 129
  },
  "hsl": {
    "h": 250.633,
    "s": 44.134,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37902,
    "c": 0.12756,
    "h": 286.8
  },
  "luminance": 0.04956
}

Semantic roles & 50–950 ramp

primary
#403281
secondary
#9FAC62
accent
#D454BD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #403281

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

Preview Lab → · Contrast checker → · Palette generator →

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