#3B1B83#3B1B83

#3B1B83 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.160 H 289.0°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#3B1B83
RGBrgb(59, 27, 131)
HSLhsl(258, 66%, 31%)
HSVhsv(258, 79%, 51%)
CMYKcmyk(55%, 79.4%, 0%, 48.6%)
CIE-LABlab(21.40, 41.04, -52.49)
CIE-LCHlch(21.40, 66.63, 308.02°)
OKLaboklab(34.09% 0.0518 -0.1509)
OKLCHoklch(34.09% 0.16 289)
XYZxyz(6.2911, 3.3521, 21.7839)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1B83 #63831B
analogous
#1B2F83 #3B1B83 #6F1B83
triadic
#3B1B83 #833B1B #1B833B
tetradic
#3B1B83 #831B2F #63831B #1B836F
square
#3B1B83 #831B2F #63831B #1B836F
split-complementary
#3B1B83 #836F1B #2F831B
monochromatic
#0D061E #241150 #3B1B83 #5225B6 #6F41D8

Accessibility & contrast

On white

12.57
#3B1B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B1B83
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1B83#FFFFFF#000000##FFFFFF
##3B1B831.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#1F394E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3b1b83;
/* rgb */ color: rgb(59, 27, 131);
/* oklch */ color: oklch(34.1% 0.160 289.0);
Tailwind
colors: {
  custom: {
    50: '#7a5ca8',
    500: '#3b1b83',
    950: '#000000',
  },
}
SCSS
$custom: #3b1b83;
$custom-light: #7a5ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1b83",
  "rgb": {
    "r": 59,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 258.462,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34094,
    "c": 0.1596,
    "h": 289
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#3B1B83
secondary
#93B643
accent
#E93FB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1B83

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

Preview Lab → · Contrast checker → · Palette generator →

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