#3B1987#3B1987

#3B1987 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.166 H 288.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#3B1987
RGBrgb(59, 25, 135)
HSLhsl(259, 69%, 31%)
HSVhsv(259, 81%, 53%)
CMYKcmyk(56.3%, 81.5%, 0%, 47.1%)
CIE-LABlab(21.48, 43.14, -54.87)
CIE-LCHlch(21.48, 69.80, 308.18°)
OKLaboklab(34.28% 0.052 -0.1579)
OKLCHoklch(34.28% 0.166 288.2)
XYZxyz(6.5231, 3.3740, 23.2245)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1987 #658719
analogous
#192E87 #3B1987 #721987
triadic
#3B1987 #873B19 #19873B
tetradic
#3B1987 #87192E #658719 #198772
square
#3B1987 #87192E #658719 #198772
split-complementary
#3B1987 #877219 #2E8719
monochromatic
#0E0620 #240F53 #3B1987 #5223BB #6F3FDB

Accessibility & contrast

On white

12.54
#3B1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3B1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1987
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1987#FFFFFF#000000##FFFFFF
##3B19871.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#1B3950
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3b1987;
/* rgb */ color: rgb(59, 25, 135);
/* oklch */ color: oklch(34.3% 0.166 288.2);
Tailwind
colors: {
  custom: {
    50: '#7b5bab',
    500: '#3b1987',
    950: '#000000',
  },
}
SCSS
$custom: #3b1987;
$custom-light: #7b5bab;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1987",
  "rgb": {
    "r": 59,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 258.545,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34275,
    "c": 0.16625,
    "h": 288.2
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#3B1987
secondary
#95BA41
accent
#EC3CB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1987

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

Preview Lab → · Contrast checker → · Palette generator →

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