#3B159F#3B159F

#3B159F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.196 H 283.4°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#3B159F
RGBrgb(59, 21, 159)
HSLhsl(257, 77%, 35%)
HSVhsv(257, 87%, 62%)
CMYKcmyk(62.9%, 86.8%, 0%, 37.6%)
CIE-LABlab(23.57, 51.52, -66.29)
CIE-LCHlch(23.57, 83.96, 307.86°)
OKLaboklab(36.49% 0.0455 -0.1911)
OKLCHoklch(36.49% 0.196 283.4)
XYZxyz(8.3279, 3.9688, 33.1214)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B159F #799F15
analogous
#15349F #3B159F #80159F
triadic
#3B159F #9F3B15 #159F3B
tetradic
#3B159F #9F1534 #799F15 #159F80
square
#3B159F #9F1534 #799F15 #159F80
split-complementary
#3B159F #9F8015 #349F15
monochromatic
#130733 #270E69 #3B159F #4F1CD5 #7348E7

Accessibility & contrast

On white

11.71
#3B159F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3B159F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B159F
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B159F#FFFFFF#000000##FFFFFF
##3B159F1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00425E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3b159f;
/* rgb */ color: rgb(59, 21, 159);
/* oklch */ color: oklch(36.5% 0.196 283.4);
Tailwind
colors: {
  custom: {
    50: '#7f5bbd',
    500: '#3b159f',
    950: '#000000',
  },
}
SCSS
$custom: #3b159f;
$custom-light: #7f5bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3b159f",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 159
  },
  "hsl": {
    "h": 256.522,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3649,
    "c": 0.19646,
    "h": 283.4
  },
  "luminance": 0.03969
}

Semantic roles & 50–950 ramp

primary
#3B159F
secondary
#A5C848
accent
#F335BF
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3B159F

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

Preview Lab → · Contrast checker → · Palette generator →

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