#3B1A7D#3B1A7D

#3B1A7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.153 H 290.8°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#3B1A7D
RGBrgb(59, 26, 125)
HSLhsl(260, 66%, 30%)
HSVhsv(260, 79%, 49%)
CMYKcmyk(52.8%, 79.2%, 0%, 51%)
CIE-LABlab(20.63, 39.79, -49.95)
CIE-LCHlch(20.63, 63.86, 308.54°)
OKLaboklab(33.37% 0.0544 -0.1435)
OKLCHoklch(33.37% 0.154 290.8)
XYZxyz(5.8736, 3.1490, 19.6964)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1A7D #5C7D1A
analogous
#1A2B7D #3B1A7D #6D1A7D
triadic
#3B1A7D #7D3B1A #1A7D3B
tetradic
#3B1A7D #7D1A2B #5C7D1A #1A7D6D
square
#3B1A7D #7D1A2B #5C7D1A #1A7D6D
split-complementary
#3B1A7D #7D6D1A #2B7D1A
monochromatic
#0C0519 #230F4A #3B1A7D #5325B0 #6F3BD6

Accessibility & contrast

On white

12.89
#3B1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B1A7D
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1A7D#FFFFFF#000000##FFFFFF
##3B1A7D1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#24364B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3b1a7d;
/* rgb */ color: rgb(59, 26, 125);
/* oklch */ color: oklch(33.4% 0.153 290.8);
Tailwind
colors: {
  custom: {
    50: '#795ba4',
    500: '#3b1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #3b1a7d;
$custom-light: #795ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1a7d",
  "rgb": {
    "r": 59,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 260,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33373,
    "c": 0.1535,
    "h": 290.8
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#3B1A7D
secondary
#8CB142
accent
#E93FB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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