#3B1A7A#3B1A7A

#3B1A7A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.150 H 291.7°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#3B1A7A
RGBrgb(59, 26, 122)
HSLhsl(261, 65%, 29%)
HSVhsv(261, 79%, 48%)
CMYKcmyk(51.6%, 78.7%, 0%, 52.2%)
CIE-LABlab(20.34, 38.92, -48.53)
CIE-LCHlch(20.34, 62.21, 308.73°)
OKLaboklab(33.08% 0.0553 -0.1393)
OKLCHoklch(33.08% 0.15 291.7)
XYZxyz(5.6849, 3.0735, 18.7023)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1A7A #597A1A
analogous
#1A297A #3B1A7A #6B1A7A
triadic
#3B1A7A #7A3B1A #1A7A3B
tetradic
#3B1A7A #7A1A29 #597A1A #1A7A6B
square
#3B1A7A #7A1A29 #597A1A #1A7A6B
split-complementary
#3B1A7A #7A6B1A #297A1A
monochromatic
#0C0519 #230F48 #3B1A7A #5325AC #6F39D5

Accessibility & contrast

On white

13.00
#3B1A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3B1A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1A7A
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1A7A#FFFFFF#000000##FFFFFF
##3B1A7A1.0013.001.6113.00
#FFFFFF13.001.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#263449
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3b1a7a;
/* rgb */ color: rgb(59, 26, 122);
/* oklch */ color: oklch(33.1% 0.150 291.7);
Tailwind
colors: {
  custom: {
    50: '#785ba1',
    500: '#3b1a7a',
    950: '#000000',
  },
}
SCSS
$custom: #3b1a7a;
$custom-light: #785ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1a7a",
  "rgb": {
    "r": 59,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 260.625,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33077,
    "c": 0.14992,
    "h": 291.7
  },
  "luminance": 0.03074
}

Semantic roles & 50–950 ramp

primary
#3B1A7A
secondary
#89AE41
accent
#E840AE
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B1A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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