#3A15A1#3A15A1

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

Color values

HEX#3A15A1
RGBrgb(58, 21, 161)
HSLhsl(256, 77%, 36%)
HSVhsv(256, 87%, 63%)
CMYKcmyk(64%, 87%, 0%, 36.9%)
CIE-LABlab(23.70, 51.99, -67.29)
CIE-LCHlch(23.70, 85.03, 307.69°)
OKLaboklab(36.62% 0.0431 -0.1941)
OKLCHoklch(36.62% 0.199 282.5)
XYZxyz(8.4441, 4.0085, 34.0400)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A15A1 #7CA115
analogous
#1536A1 #3A15A1 #8015A1
triadic
#3A15A1 #A13A15 #15A13A
tetradic
#3A15A1 #A11536 #7CA115 #15A180
square
#3A15A1 #A11536 #7CA115 #15A180
split-complementary
#3A15A1 #A18015 #36A115
monochromatic
#130735 #260E6B #3A15A1 #4E1CD7 #7349E7

Accessibility & contrast

On white

11.66
#3A15A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3A15A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A15A1
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A15A1#FFFFFF#000000##FFFFFF
##3A15A11.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a15a1;
/* rgb */ color: rgb(58, 21, 161);
/* oklch */ color: oklch(36.6% 0.199 282.5);
Tailwind
colors: {
  custom: {
    50: '#7f5bbe',
    500: '#3a15a1',
    950: '#000000',
  },
}
SCSS
$custom: #3a15a1;
$custom-light: #7f5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3a15a1",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 255.857,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36623,
    "c": 0.19879,
    "h": 282.5
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#3A15A1
secondary
#A7C849
accent
#F334C1
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3A15A1

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

Preview Lab → · Contrast checker → · Palette generator →

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