#3B1783#3B1783

#3B1783 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.163 H 289.6°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#3B1783
RGBrgb(59, 23, 131)
HSLhsl(260, 70%, 30%)
HSVhsv(260, 82%, 51%)
CMYKcmyk(55%, 82.4%, 0%, 48.6%)
CIE-LABlab(20.75, 42.91, -53.55)
CIE-LCHlch(20.75, 68.62, 308.70°)
OKLaboklab(33.64% 0.0548 -0.154)
OKLCHoklch(33.64% 0.163 289.6)
XYZxyz(6.2056, 3.1810, 21.7553)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1783 #5F8317
analogous
#172983 #3B1783 #711783
triadic
#3B1783 #833B17 #17833B
tetradic
#3B1783 #831729 #5F8317 #178371
square
#3B1783 #831729 #5F8317 #178371
split-complementary
#3B1783 #837117 #298317
monochromatic
#0C051B #240E4F #3B1783 #5220B7 #6F38DC

Accessibility & contrast

On white

12.83
#3B1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3B1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1783
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1783#FFFFFF#000000##FFFFFF
##3B17831.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b1783;
/* rgb */ color: rgb(59, 23, 131);
/* oklch */ color: oklch(33.6% 0.163 289.6);
Tailwind
colors: {
  custom: {
    50: '#7a5aa8',
    500: '#3b1783',
    950: '#000000',
  },
}
SCSS
$custom: #3b1783;
$custom-light: #7a5aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1783",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 260,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33644,
    "c": 0.16347,
    "h": 289.6
  },
  "luminance": 0.03181
}

Semantic roles & 50–950 ramp

primary
#3B1783
secondary
#8FB73F
accent
#ED3BB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1783

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

Preview Lab → · Contrast checker → · Palette generator →

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