#3B17A0#3B17A0

#3B17A0 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.196 H 283.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#3B17A0
RGBrgb(59, 23, 160)
HSLhsl(256, 75%, 36%)
HSVhsv(256, 86%, 63%)
CMYKcmyk(63.1%, 85.6%, 0%, 37.3%)
CIE-LABlab(23.93, 51.05, -66.29)
CIE-LCHlch(23.93, 83.67, 307.60°)
OKLaboklab(36.77% 0.0442 -0.1912)
OKLCHoklch(36.77% 0.196 283)
XYZxyz(8.4532, 4.0801, 33.5930)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B17A0 #7CA017
analogous
#1738A0 #3B17A0 #7F17A0
triadic
#3B17A0 #A03B17 #17A03B
tetradic
#3B17A0 #A01738 #7CA017 #17A07F
square
#3B17A0 #A01738 #7CA017 #17A07F
split-complementary
#3B17A0 #A07F17 #38A017
monochromatic
#140835 #270F6A #3B17A0 #4F1FD6 #744CE5

Accessibility & contrast

On white

11.56
#3B17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3B17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B17A0
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B17A0#FFFFFF#000000##FFFFFF
##3B17A01.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3b17a0;
/* rgb */ color: rgb(59, 23, 160);
/* oklch */ color: oklch(36.8% 0.196 283.0);
Tailwind
colors: {
  custom: {
    50: '#7f5cbd',
    500: '#3b17a0',
    950: '#000000',
  },
}
SCSS
$custom: #3b17a0;
$custom-light: #7f5cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3b17a0",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 255.766,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36774,
    "c": 0.19621,
    "h": 283
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#3B17A0
secondary
#A7C74C
accent
#F136C0
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3B17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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