#3B1171#3B1171

#3B1171 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.149 H 296.2°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#3B1171
RGBrgb(59, 17, 113)
HSLhsl(266, 74%, 25%)
HSVhsv(266, 85%, 44%)
CMYKcmyk(47.8%, 85%, 0%, 55.7%)
CIE-LABlab(18.02, 40.50, -46.54)
CIE-LCHlch(18.02, 61.69, 311.03°)
OKLaboklab(31.19% 0.0655 -0.1334)
OKLCHoklch(31.19% 0.149 296.2)
XYZxyz(4.9839, 2.5228, 15.8439)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1171 #477111
analogous
#111771 #3B1171 #6B1171
triadic
#3B1171 #713B11 #11713B
tetradic
#3B1171 #711117 #477111 #11716B
square
#3B1171 #711117 #477111 #11716B
split-complementary
#3B1171 #716B11 #177111
monochromatic
#0E041B #1F093C #3B1171 #5719A6 #7321DB

Accessibility & contrast

On white

13.96
#3B1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3B1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1171
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1171#FFFFFF#000000##FFFFFF
##3B11711.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b1171;
/* rgb */ color: rgb(59, 17, 113);
/* oklch */ color: oklch(31.2% 0.149 296.2);
Tailwind
colors: {
  custom: {
    50: '#78569b',
    500: '#3b1171',
    950: '#000000',
  },
}
SCSS
$custom: #3b1171;
$custom-light: #78569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1171",
  "rgb": {
    "r": 59,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 266.25,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31192,
    "c": 0.14865,
    "h": 296.2
  },
  "luminance": 0.02523
}

Semantic roles & 50–950 ramp

primary
#3B1171
secondary
#76A836
accent
#F1379F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3B1171

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

Preview Lab → · Contrast checker → · Palette generator →

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