#3B17A1#3B17A1

#3B17A1 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.9% C 0.197 H 282.8°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#3B17A1
RGBrgb(59, 23, 161)
HSLhsl(256, 75%, 36%)
HSVhsv(256, 86%, 63%)
CMYKcmyk(63.4%, 85.7%, 0%, 36.9%)
CIE-LABlab(24.05, 51.33, -66.71)
CIE-LCHlch(24.05, 84.17, 307.58°)
OKLaboklab(36.89% 0.0438 -0.1924)
OKLCHoklch(36.89% 0.197 282.8)
XYZxyz(8.5411, 4.1152, 34.0555)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B17A1 #7DA117
analogous
#1738A1 #3B17A1 #8017A1
triadic
#3B17A1 #A13B17 #17A13B
tetradic
#3B17A1 #A11738 #7DA117 #17A180
square
#3B17A1 #A11738 #7DA117 #17A180
split-complementary
#3B17A1 #A18017 #38A117
monochromatic
#140836 #270F6B #3B17A1 #4F1FD7 #754DE6

Accessibility & contrast

On white

11.52
#3B17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B17A1
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B17A1#FFFFFF#000000##FFFFFF
##3B17A11.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3b17a1;
/* rgb */ color: rgb(59, 23, 161);
/* oklch */ color: oklch(36.9% 0.197 282.8);
Tailwind
colors: {
  custom: {
    50: '#805cbe',
    500: '#3b17a1',
    950: '#000000',
  },
}
SCSS
$custom: #3b17a1;
$custom-light: #805cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3b17a1",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 255.652,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36886,
    "c": 0.19732,
    "h": 282.8
  },
  "luminance": 0.04116
}

Semantic roles & 50–950 ramp

primary
#3B17A1
secondary
#A7C74C
accent
#F236C1
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3B17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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