#3B1B85#3B1B85

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

Color values

HEX#3B1B85
RGBrgb(59, 27, 133)
HSLhsl(258, 66%, 31%)
HSVhsv(258, 80%, 52%)
CMYKcmyk(55.6%, 79.7%, 0%, 47.8%)
CIE-LABlab(21.60, 41.62, -53.41)
CIE-LCHlch(21.60, 67.72, 307.93°)
OKLaboklab(34.3% 0.0512 -0.1537)
OKLCHoklch(34.3% 0.162 288.4)
XYZxyz(6.4280, 3.4068, 22.5046)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1B85 #65851B
analogous
#1B3085 #3B1B85 #701B85
triadic
#3B1B85 #853B1B #1B853B
tetradic
#3B1B85 #851B30 #65851B #1B8570
square
#3B1B85 #851B30 #65851B #1B8570
split-complementary
#3B1B85 #85701B #30851B
monochromatic
#0E061F #241152 #3B1B85 #5225B8 #6F42D9

Accessibility & contrast

On white

12.49
#3B1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3B1B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1B85
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1B85#FFFFFF#000000##FFFFFF
##3B1B851.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#1D394F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3b1b85;
/* rgb */ color: rgb(59, 27, 133);
/* oklch */ color: oklch(34.3% 0.162 288.4);
Tailwind
colors: {
  custom: {
    50: '#7a5caa',
    500: '#3b1b85',
    950: '#000000',
  },
}
SCSS
$custom: #3b1b85;
$custom-light: #7a5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1b85",
  "rgb": {
    "r": 59,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 258.113,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34297,
    "c": 0.16197,
    "h": 288.4
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#3B1B85
secondary
#95B844
accent
#E93FB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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