#3B1871#3B1871

#3B1871 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.141 H 295.0°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#3B1871
RGBrgb(59, 24, 113)
HSLhsl(264, 65%, 27%)
HSVhsv(264, 79%, 44%)
CMYKcmyk(47.8%, 78.8%, 0%, 55.7%)
CIE-LABlab(19.12, 37.33, -44.74)
CIE-LCHlch(19.12, 58.27, 309.84°)
OKLaboklab(31.96% 0.0597 -0.1282)
OKLCHoklch(31.96% 0.141 295)
XYZxyz(5.1101, 2.7752, 15.8860)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1871 #4E7118
analogous
#182171 #3B1871 #681871
triadic
#3B1871 #713B18 #18713B
tetradic
#3B1871 #711821 #4E7118 #187168
square
#3B1871 #711821 #4E7118 #187168
split-complementary
#3B1871 #716818 #217118
monochromatic
#0D0519 #210D3F #3B1871 #5523A3 #7030D3

Accessibility & contrast

On white

13.50
#3B1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3B1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1871
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1871#FFFFFF#000000##FFFFFF
##3B18711.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b1871;
/* rgb */ color: rgb(59, 24, 113);
/* oklch */ color: oklch(32.0% 0.141 295.0);
Tailwind
colors: {
  custom: {
    50: '#77599b',
    500: '#3b1871',
    950: '#000000',
  },
}
SCSS
$custom: #3b1871;
$custom-light: #77599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1871",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 263.596,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31958,
    "c": 0.14142,
    "h": 295
  },
  "luminance": 0.02775
}

Semantic roles & 50–950 ramp

primary
#3B1871
secondary
#7EA63E
accent
#E840A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3B1871

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

Preview Lab → · Contrast checker → · Palette generator →

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