#3B1985#3B1985

#3B1985 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.164 H 288.7°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#3B1985
RGBrgb(59, 25, 133)
HSLhsl(259, 68%, 31%)
HSVhsv(259, 81%, 52%)
CMYKcmyk(55.6%, 81.2%, 0%, 47.8%)
CIE-LABlab(21.28, 42.57, -53.96)
CIE-LCHlch(21.28, 68.73, 308.27°)
OKLaboklab(34.07% 0.0527 -0.1552)
OKLCHoklch(34.07% 0.164 288.7)
XYZxyz(6.3837, 3.3182, 22.4899)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1985 #638519
analogous
#192D85 #3B1985 #711985
triadic
#3B1985 #853B19 #19853B
tetradic
#3B1985 #85192D #638519 #198571
square
#3B1985 #85192D #638519 #198571
split-complementary
#3B1985 #857119 #2D8519
monochromatic
#0D061E #240F51 #3B1985 #5223B9 #6F3EDB

Accessibility & contrast

On white

12.62
#3B1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3B1985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1985
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1985#FFFFFF#000000##FFFFFF
##3B19851.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#1D394F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3b1985;
/* rgb */ color: rgb(59, 25, 133);
/* oklch */ color: oklch(34.1% 0.164 288.7);
Tailwind
colors: {
  custom: {
    50: '#7a5baa',
    500: '#3b1985',
    950: '#000000',
  },
}
SCSS
$custom: #3b1985;
$custom-light: #7a5baa;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1985",
  "rgb": {
    "r": 59,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 258.889,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34068,
    "c": 0.16392,
    "h": 288.7
  },
  "luminance": 0.03319
}

Semantic roles & 50–950 ramp

primary
#3B1985
secondary
#93B941
accent
#EB3DB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1985

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

Preview Lab → · Contrast checker → · Palette generator →

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