#3B1A7B#3B1A7B

#3B1A7B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.151 H 291.4°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#3B1A7B
RGBrgb(59, 26, 123)
HSLhsl(260, 65%, 29%)
HSVhsv(260, 79%, 48%)
CMYKcmyk(52%, 78.9%, 0%, 51.8%)
CIE-LABlab(20.43, 39.21, -49.00)
CIE-LCHlch(20.43, 62.76, 308.66°)
OKLaboklab(33.17% 0.055 -0.1407)
OKLCHoklch(33.17% 0.151 291.4)
XYZxyz(5.7472, 3.0984, 19.0303)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1A7B #5A7B1A
analogous
#1A2A7B #3B1A7B #6C1A7B
triadic
#3B1A7B #7B3B1A #1A7B3B
tetradic
#3B1A7B #7B1A2A #5A7B1A #1A7B6C
square
#3B1A7B #7B1A2A #5A7B1A #1A7B6C
split-complementary
#3B1A7B #7B6C1A #2A7B1A
monochromatic
#0C0519 #230F48 #3B1A7B #5325AE #6F3AD5

Accessibility & contrast

On white

12.96
#3B1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3B1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1A7B
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1A7B#FFFFFF#000000##FFFFFF
##3B1A7B1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#253549
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3b1a7b;
/* rgb */ color: rgb(59, 26, 123);
/* oklch */ color: oklch(33.2% 0.151 291.4);
Tailwind
colors: {
  custom: {
    50: '#785ba2',
    500: '#3b1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #3b1a7b;
$custom-light: #785ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1a7b",
  "rgb": {
    "r": 59,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 260.412,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33175,
    "c": 0.15112,
    "h": 291.4
  },
  "luminance": 0.03099
}

Semantic roles & 50–950 ramp

primary
#3B1A7B
secondary
#8AAF42
accent
#E840AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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