#3B1371#3B1371

#3B1371 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.147 H 295.9°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#3B1371
RGBrgb(59, 19, 113)
HSLhsl(266, 71%, 26%)
HSVhsv(266, 83%, 44%)
CMYKcmyk(47.8%, 83.2%, 0%, 55.7%)
CIE-LABlab(18.31, 39.66, -46.06)
CIE-LCHlch(18.31, 60.78, 310.73°)
OKLaboklab(31.39% 0.064 -0.132)
OKLCHoklch(31.39% 0.147 295.9)
XYZxyz(5.0163, 2.5877, 15.8548)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1371 #497113
analogous
#131A71 #3B1371 #6A1371
triadic
#3B1371 #713B13 #13713B
tetradic
#3B1371 #71131A #497113 #13716A
square
#3B1371 #71131A #497113 #13716A
split-complementary
#3B1371 #716A13 #1A7113
monochromatic
#0E041A #200A3D #3B1371 #561CA5 #7225DA

Accessibility & contrast

On white

13.84
#3B1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3B1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1371
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1371#FFFFFF#000000##FFFFFF
##3B13711.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#2C2E42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3b1371;
/* rgb */ color: rgb(59, 19, 113);
/* oklch */ color: oklch(31.4% 0.147 295.9);
Tailwind
colors: {
  custom: {
    50: '#77569b',
    500: '#3b1371',
    950: '#000000',
  },
}
SCSS
$custom: #3b1371;
$custom-light: #77569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1371",
  "rgb": {
    "r": 59,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 265.532,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31392,
    "c": 0.14673,
    "h": 295.9
  },
  "luminance": 0.02588
}

Semantic roles & 50–950 ramp

primary
#3B1371
secondary
#78A838
accent
#EE3AA1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3B1371

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

Preview Lab → · Contrast checker → · Palette generator →

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