#3915A1#3915A1

#3915A1 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.199 H 282.0°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#3915A1
RGBrgb(57, 21, 161)
HSLhsl(255, 77%, 36%)
HSVhsv(255, 87%, 63%)
CMYKcmyk(64.6%, 87%, 0%, 36.9%)
CIE-LABlab(23.60, 51.90, -67.46)
CIE-LCHlch(23.60, 85.11, 307.57°)
OKLaboklab(36.53% 0.0415 -0.1946)
OKLCHoklch(36.53% 0.199 282)
XYZxyz(8.3865, 3.9788, 34.0373)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3915A1 #7DA115
analogous
#1537A1 #3915A1 #7F15A1
triadic
#3915A1 #A13915 #15A139
tetradic
#3915A1 #A11537 #7DA115 #15A17F
square
#3915A1 #A11537 #7DA115 #15A17F
split-complementary
#3915A1 #A17F15 #37A115
monochromatic
#130735 #260E6B #3915A1 #4C1CD7 #7249E7

Accessibility & contrast

On white

11.69
#3915A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3915A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3915A1
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3915A1#FFFFFF#000000##FFFFFF
##3915A11.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3915a1;
/* rgb */ color: rgb(57, 21, 161);
/* oklch */ color: oklch(36.5% 0.199 282.0);
Tailwind
colors: {
  custom: {
    50: '#7f5bbe',
    500: '#3915a1',
    950: '#000000',
  },
}
SCSS
$custom: #3915a1;
$custom-light: #7f5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3915a1",
  "rgb": {
    "r": 57,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 255.429,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36533,
    "c": 0.19895,
    "h": 282
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#3915A1
secondary
#A8C849
accent
#F334C2
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3915A1

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

Preview Lab → · Contrast checker → · Palette generator →

#3915A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva