#403183#403183

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

Color values

HEX#403183
RGBrgb(64, 49, 131)
HSLhsl(251, 46%, 35%)
HSVhsv(251, 63%, 51%)
CMYKcmyk(51.1%, 62.6%, 0%, 48.6%)
CIE-LABlab(26.52, 29.34, -44.11)
CIE-LCHlch(26.52, 52.98, 303.63°)
OKLaboklab(37.89% 0.0379 -0.1262)
OKLCHoklch(37.89% 0.132 286.7)
XYZxyz(7.3082, 4.9250, 22.0339)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403183 #748331
analogous
#314B83 #403183 #693183
triadic
#403183 #834031 #318340
tetradic
#403183 #83314B #748331 #318369
square
#403183 #83314B #748331 #318369
split-complementary
#403183 #836931 #4B8331
monochromatic
#14102A #2A2056 #403183 #5642B0 #7968C6

Accessibility & contrast

On white

10.58
#403183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403183
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403183#FFFFFF#000000##FFFFFF
##4031831.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004186
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#284455
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #403183;
/* rgb */ color: rgb(64, 49, 131);
/* oklch */ color: oklch(37.9% 0.132 286.7);
Tailwind
colors: {
  custom: {
    50: '#7b6aa8',
    500: '#403183',
    950: '#000000',
  },
}
SCSS
$custom: #403183;
$custom-light: #7b6aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#403183",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 131
  },
  "hsl": {
    "h": 250.976,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37886,
    "c": 0.13181,
    "h": 286.7
  },
  "luminance": 0.04925
}

Semantic roles & 50–950 ramp

primary
#403183
secondary
#A0AE62
accent
#D553BD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #403183

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

Preview Lab → · Contrast checker → · Palette generator →

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