#3B1B8A#3B1B8A

#3B1B8A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.168 H 287.2°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#3B1B8A
RGBrgb(59, 27, 138)
HSLhsl(257, 67%, 32%)
HSVhsv(257, 80%, 54%)
CMYKcmyk(57.2%, 80.4%, 0%, 45.9%)
CIE-LABlab(22.12, 43.08, -55.71)
CIE-LCHlch(22.12, 70.42, 307.72°)
OKLaboklab(34.81% 0.0496 -0.1604)
OKLCHoklch(34.81% 0.168 287.2)
XYZxyz(6.7816, 3.5483, 24.3674)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1B8A #6A8A1B
analogous
#1B338A #3B1B8A #721B8A
triadic
#3B1B8A #8A3B1B #1B8A3B
tetradic
#3B1B8A #8A1B33 #6A8A1B #1B8A72
square
#3B1B8A #8A1B33 #6A8A1B #1B8A72
split-complementary
#3B1B8A #8A721B #338A1B
monochromatic
#0F0724 #251157 #3B1B8A #5125BD #7045DB

Accessibility & contrast

On white

12.28
#3B1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3B1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1B8A
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1B8A#FFFFFF#000000##FFFFFF
##3B1B8A1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#173B52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3b1b8a;
/* rgb */ color: rgb(59, 27, 138);
/* oklch */ color: oklch(34.8% 0.168 287.2);
Tailwind
colors: {
  custom: {
    50: '#7b5cad',
    500: '#3b1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #3b1b8a;
$custom-light: #7b5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1b8a",
  "rgb": {
    "r": 59,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 257.297,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3481,
    "c": 0.16787,
    "h": 287.2
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

primary
#3B1B8A
secondary
#9ABC45
accent
#EA3EB8
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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