#3B1978#3B1978

#3B1978 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.149 H 292.5°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#3B1978
RGBrgb(59, 25, 120)
HSLhsl(261, 66%, 28%)
HSVhsv(261, 79%, 47%)
CMYKcmyk(50.8%, 79.2%, 0%, 52.9%)
CIE-LABlab(19.97, 38.84, -47.85)
CIE-LCHlch(19.97, 61.63, 309.06°)
OKLaboklab(32.76% 0.0568 -0.1373)
OKLCHoklch(32.76% 0.149 292.5)
XYZxyz(5.5405, 2.9809, 18.0491)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1978 #567819
analogous
#192678 #3B1978 #6A1978
triadic
#3B1978 #783B19 #19783B
tetradic
#3B1978 #781926 #567819 #19786A
square
#3B1978 #781926 #567819 #19786A
split-complementary
#3B1978 #786A19 #267819
monochromatic
#0C0519 #220E45 #3B1978 #5424AB #6F36D5

Accessibility & contrast

On white

13.16
#3B1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3B1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1978
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1978#FFFFFF#000000##FFFFFF
##3B19781.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#273348
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3b1978;
/* rgb */ color: rgb(59, 25, 120);
/* oklch */ color: oklch(32.8% 0.149 292.5);
Tailwind
colors: {
  custom: {
    50: '#785aa0',
    500: '#3b1978',
    950: '#000000',
  },
}
SCSS
$custom: #3b1978;
$custom-light: #785aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1978",
  "rgb": {
    "r": 59,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 261.474,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32759,
    "c": 0.14862,
    "h": 292.5
  },
  "luminance": 0.02981
}

Semantic roles & 50–950 ramp

primary
#3B1978
secondary
#86AD40
accent
#E83FAC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3B1978

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

Preview Lab → · Contrast checker → · Palette generator →

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