#3B1771#3B1771

#3B1771 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.143 H 295.2°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#3B1771
RGBrgb(59, 23, 113)
HSLhsl(264, 66%, 27%)
HSVhsv(264, 80%, 44%)
CMYKcmyk(47.8%, 79.6%, 0%, 55.7%)
CIE-LABlab(18.95, 37.82, -45.02)
CIE-LCHlch(18.95, 58.80, 310.04°)
OKLaboklab(31.84% 0.0606 -0.129)
OKLCHoklch(31.84% 0.143 295.2)
XYZxyz(5.0899, 2.7347, 15.8793)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1771 #4D7117
analogous
#172071 #3B1771 #681771
triadic
#3B1771 #713B17 #17713B
tetradic
#3B1771 #711720 #4D7117 #177168
square
#3B1771 #711720 #4D7117 #177168
split-complementary
#3B1771 #716817 #207117
monochromatic
#0D0519 #200D3E #3B1771 #5621A4 #712ED4

Accessibility & contrast

On white

13.57
#3B1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3B1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1771
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1771#FFFFFF#000000##FFFFFF
##3B17711.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#2C2F43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3b1771;
/* rgb */ color: rgb(59, 23, 113);
/* oklch */ color: oklch(31.8% 0.143 295.2);
Tailwind
colors: {
  custom: {
    50: '#77589b',
    500: '#3b1771',
    950: '#000000',
  },
}
SCSS
$custom: #3b1771;
$custom-light: #77589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1771",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 264,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31837,
    "c": 0.14253,
    "h": 295.2
  },
  "luminance": 0.02735
}

Semantic roles & 50–950 ramp

primary
#3B1771
secondary
#7CA73D
accent
#E93FA5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3B1771

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

Preview Lab → · Contrast checker → · Palette generator →

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