#3B158D#3B158D

#3B158D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.176 H 287.3°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#3B158D
RGBrgb(59, 21, 141)
HSLhsl(259, 74%, 32%)
HSVhsv(259, 85%, 55%)
CMYKcmyk(58.2%, 85.1%, 0%, 44.7%)
CIE-LABlab(21.54, 46.56, -58.54)
CIE-LCHlch(21.54, 74.79, 308.50°)
OKLaboklab(34.51% 0.0524 -0.1685)
OKLCHoklch(34.51% 0.177 287.3)
XYZxyz(6.8781, 3.3888, 25.4858)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B158D #678D15
analogous
#152B8D #3B158D #77158D
triadic
#3B158D #8D3B15 #158D3B
tetradic
#3B158D #8D152B #678D15 #158D77
square
#3B158D #8D152B #678D15 #158D77
split-complementary
#3B158D #8D7715 #2B8D15
monochromatic
#0E0522 #250D58 #3B158D #511DC2 #703BE2

Accessibility & contrast

On white

12.52
#3B158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B158D
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B158D#FFFFFF#000000##FFFFFF
##3B158D1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#133A53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3b158d;
/* rgb */ color: rgb(59, 21, 141);
/* oklch */ color: oklch(34.5% 0.176 287.3);
Tailwind
colors: {
  custom: {
    50: '#7c59b0',
    500: '#3b158d',
    950: '#000000',
  },
}
SCSS
$custom: #3b158d;
$custom-light: #7c59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b158d",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 259,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34505,
    "c": 0.1765,
    "h": 287.3
  },
  "luminance": 0.03389
}

Semantic roles & 50–950 ramp

primary
#3B158D
secondary
#97C13D
accent
#F137B6
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B158D

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

Preview Lab → · Contrast checker → · Palette generator →

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