#3B1B87#3B1B87

#3B1B87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.164 H 287.9°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#3B1B87
RGBrgb(59, 27, 135)
HSLhsl(258, 67%, 32%)
HSVhsv(258, 80%, 53%)
CMYKcmyk(56.3%, 80%, 0%, 47.1%)
CIE-LABlab(21.81, 42.20, -54.34)
CIE-LCHlch(21.81, 68.80, 307.84°)
OKLaboklab(34.5% 0.0506 -0.1563)
OKLCHoklch(34.5% 0.164 287.9)
XYZxyz(6.5674, 3.4626, 23.2393)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1B87 #67871B
analogous
#1B3187 #3B1B87 #711B87
triadic
#3B1B87 #873B1B #1B873B
tetradic
#3B1B87 #871B31 #67871B #1B8771
square
#3B1B87 #871B31 #67871B #1B8771
split-complementary
#3B1B87 #87711B #31871B
monochromatic
#0E0721 #251154 #3B1B87 #5125BA #7043D9

Accessibility & contrast

On white

12.41
#3B1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3B1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1B87
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1B87#FFFFFF#000000##FFFFFF
##3B1B871.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b1b87;
/* rgb */ color: rgb(59, 27, 135);
/* oklch */ color: oklch(34.5% 0.164 287.9);
Tailwind
colors: {
  custom: {
    50: '#7a5cab',
    500: '#3b1b87',
    950: '#000000',
  },
}
SCSS
$custom: #3b1b87;
$custom-light: #7a5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1b87",
  "rgb": {
    "r": 59,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 257.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34501,
    "c": 0.16433,
    "h": 287.9
  },
  "luminance": 0.03463
}

Semantic roles & 50–950 ramp

primary
#3B1B87
secondary
#97BA44
accent
#EA3EB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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