#3A1783#3A1783

#3A1783 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.164 H 289.0°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#3A1783
RGBrgb(58, 23, 131)
HSLhsl(259, 70%, 30%)
HSVhsv(259, 82%, 51%)
CMYKcmyk(55.7%, 82.4%, 0%, 48.6%)
CIE-LABlab(20.64, 42.78, -53.75)
CIE-LCHlch(20.64, 68.69, 308.51°)
OKLaboklab(33.54% 0.0531 -0.1546)
OKLCHoklch(33.54% 0.164 289)
XYZxyz(6.1469, 3.1507, 21.7526)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1783 #608317
analogous
#172A83 #3A1783 #701783
triadic
#3A1783 #833A17 #17833A
tetradic
#3A1783 #83172A #608317 #178370
square
#3A1783 #83172A #608317 #178370
split-complementary
#3A1783 #837017 #2A8317
monochromatic
#0C051B #230E4F #3A1783 #5120B7 #6D38DC

Accessibility & contrast

On white

12.88
#3A1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3A1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1783
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1783#FFFFFF#000000##FFFFFF
##3A17831.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#1C374D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a1783;
/* rgb */ color: rgb(58, 23, 131);
/* oklch */ color: oklch(33.5% 0.164 289.0);
Tailwind
colors: {
  custom: {
    50: '#7959a8',
    500: '#3a1783',
    950: '#000000',
  },
}
SCSS
$custom: #3a1783;
$custom-light: #7959a8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1783",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 259.444,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33536,
    "c": 0.1635,
    "h": 289
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#3A1783
secondary
#90B73F
accent
#ED3BB3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1783

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

Preview Lab → · Contrast checker → · Palette generator →

#3A1783 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva