#3B1C8B#3B1C8B

#3B1C8B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.168 H 286.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#3B1C8B
RGBrgb(59, 28, 139)
HSLhsl(257, 66%, 33%)
HSVhsv(257, 80%, 55%)
CMYKcmyk(57.6%, 79.9%, 0%, 45.5%)
CIE-LABlab(22.39, 42.89, -55.89)
CIE-LCHlch(22.39, 70.45, 307.51°)
OKLaboklab(35.03% 0.0486 -0.1609)
OKLCHoklch(35.03% 0.168 286.8)
XYZxyz(6.8777, 3.6240, 24.7582)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1C8B #6C8B1C
analogous
#1C348B #3B1C8B #731C8B
triadic
#3B1C8B #8B3B1C #1C8B3B
tetradic
#3B1C8B #8B1C34 #6C8B1C #1C8B73
square
#3B1C8B #8B1C34 #6C8B1C #1C8B73
split-complementary
#3B1C8B #8B731C #348B1C
monochromatic
#100725 #251258 #3B1C8B #5126BE #7047DA

Accessibility & contrast

On white

12.18
#3B1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3B1C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1C8B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1C8B#FFFFFF#000000##FFFFFF
##3B1C8B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#163C53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3b1c8b;
/* rgb */ color: rgb(59, 28, 139);
/* oklch */ color: oklch(35.0% 0.168 286.8);
Tailwind
colors: {
  custom: {
    50: '#7b5dae',
    500: '#3b1c8b',
    950: '#000000',
  },
}
SCSS
$custom: #3b1c8b;
$custom-light: #7b5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1c8b",
  "rgb": {
    "r": 59,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 256.757,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35028,
    "c": 0.16809,
    "h": 286.8
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#3B1C8B
secondary
#9BBC47
accent
#E93EBA
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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