#3B1D82#3B1D82

#3B1D82 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.156 H 288.9°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#3B1D82
RGBrgb(59, 29, 130)
HSLhsl(258, 64%, 31%)
HSVhsv(258, 78%, 51%)
CMYKcmyk(54.6%, 77.7%, 0%, 49%)
CIE-LABlab(21.65, 39.74, -51.44)
CIE-LCHlch(21.65, 65.01, 307.69°)
OKLaboklab(34.24% 0.0505 -0.1479)
OKLCHoklch(34.24% 0.156 288.9)
XYZxyz(6.2711, 3.4199, 21.4444)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1D82 #64821D
analogous
#1D3182 #3B1D82 #6D1D82
triadic
#3B1D82 #823B1D #1D823B
tetradic
#3B1D82 #821D31 #64821D #1D826D
square
#3B1D82 #821D31 #64821D #1D826D
split-complementary
#3B1D82 #826D1D #31821D
monochromatic
#0E071E #241250 #3B1D82 #5228B4 #6F44D5

Accessibility & contrast

On white

12.47
#3B1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3B1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1D82
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1D82#FFFFFF#000000##FFFFFF
##3B1D821.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#1F394E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3b1d82;
/* rgb */ color: rgb(59, 29, 130);
/* oklch */ color: oklch(34.2% 0.156 288.9);
Tailwind
colors: {
  custom: {
    50: '#795da7',
    500: '#3b1d82',
    950: '#000000',
  },
}
SCSS
$custom: #3b1d82;
$custom-light: #795da7;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1d82",
  "rgb": {
    "r": 59,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 257.822,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3424,
    "c": 0.1563,
    "h": 288.9
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#3B1D82
secondary
#94B546
accent
#E741B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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