#3B1C8D#3B1C8D

#3B1C8D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.170 H 286.4°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#3B1C8D
RGBrgb(59, 28, 141)
HSLhsl(256, 67%, 33%)
HSVhsv(256, 80%, 55%)
CMYKcmyk(58.2%, 80.1%, 0%, 44.7%)
CIE-LABlab(22.59, 43.48, -56.79)
CIE-LCHlch(22.59, 71.53, 307.44°)
OKLaboklab(35.24% 0.048 -0.1635)
OKLCHoklch(35.24% 0.17 286.4)
XYZxyz(7.0252, 3.6830, 25.5348)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1C8D #6E8D1C
analogous
#1C358D #3B1C8D #731C8D
triadic
#3B1C8D #8D3B1C #1C8D3B
tetradic
#3B1C8D #8D1C35 #6E8D1C #1C8D73
square
#3B1C8D #8D1C35 #6E8D1C #1C8D73
split-complementary
#3B1C8D #8D731C #358D1C
monochromatic
#100827 #26125A #3B1C8D #5026C0 #7149DB

Accessibility & contrast

On white

12.09
#3B1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3B1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1C8D
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1C8D#FFFFFF#000000##FFFFFF
##3B1C8D1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#133D54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3b1c8d;
/* rgb */ color: rgb(59, 28, 141);
/* oklch */ color: oklch(35.2% 0.170 286.4);
Tailwind
colors: {
  custom: {
    50: '#7b5daf',
    500: '#3b1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #3b1c8d;
$custom-light: #7b5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1c8d",
  "rgb": {
    "r": 59,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 256.46,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35235,
    "c": 0.17045,
    "h": 286.4
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#3B1C8D
secondary
#9DBD48
accent
#EA3EBB
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #3B1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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