#3B15A1#3B15A1

#3B15A1 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.7% C 0.199 H 283.0°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#3B15A1
RGBrgb(59, 21, 161)
HSLhsl(256, 77%, 36%)
HSVhsv(256, 87%, 63%)
CMYKcmyk(63.4%, 87%, 0%, 36.9%)
CIE-LABlab(23.80, 52.07, -67.12)
CIE-LCHlch(23.80, 84.95, 307.80°)
OKLaboklab(36.71% 0.0447 -0.1936)
OKLCHoklch(36.71% 0.199 283)
XYZxyz(8.5028, 4.0387, 34.0428)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B15A1 #7BA115
analogous
#1535A1 #3B15A1 #8115A1
triadic
#3B15A1 #A13B15 #15A13B
tetradic
#3B15A1 #A11535 #7BA115 #15A181
square
#3B15A1 #A11535 #7BA115 #15A181
split-complementary
#3B15A1 #A18115 #35A115
monochromatic
#130735 #270E6B #3B15A1 #4F1CD7 #7449E7

Accessibility & contrast

On white

11.62
#3B15A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3B15A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B15A1
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B15A1#FFFFFF#000000##FFFFFF
##3B15A11.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b15a1;
/* rgb */ color: rgb(59, 21, 161);
/* oklch */ color: oklch(36.7% 0.199 283.0);
Tailwind
colors: {
  custom: {
    50: '#805bbe',
    500: '#3b15a1',
    950: '#000000',
  },
}
SCSS
$custom: #3b15a1;
$custom-light: #805bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3b15a1",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 256.286,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36715,
    "c": 0.19865,
    "h": 283
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#3B15A1
secondary
#A6C849
accent
#F334C0
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3B15A1

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

Preview Lab → · Contrast checker → · Palette generator →

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