#3A15A0#3A15A0

#3A15A0 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.198 H 282.7°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#3A15A0
RGBrgb(58, 21, 160)
HSLhsl(256, 77%, 35%)
HSVhsv(256, 87%, 63%)
CMYKcmyk(63.8%, 86.9%, 0%, 37.3%)
CIE-LABlab(23.58, 51.71, -66.88)
CIE-LCHlch(23.58, 84.54, 307.71°)
OKLaboklab(36.51% 0.0435 -0.1929)
OKLCHoklch(36.51% 0.198 282.7)
XYZxyz(8.3563, 3.9733, 33.5775)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A15A0 #7BA015
analogous
#1536A0 #3A15A0 #7F15A0
triadic
#3A15A0 #A03A15 #15A03A
tetradic
#3A15A0 #A01536 #7BA015 #15A07F
square
#3A15A0 #A01536 #7BA015 #15A07F
split-complementary
#3A15A0 #A07F15 #36A015
monochromatic
#130734 #260E6A #3A15A0 #4E1CD6 #7348E7

Accessibility & contrast

On white

11.70
#3A15A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3A15A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A15A0
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A15A0#FFFFFF#000000##FFFFFF
##3A15A01.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a15a0;
/* rgb */ color: rgb(58, 21, 160);
/* oklch */ color: oklch(36.5% 0.198 282.7);
Tailwind
colors: {
  custom: {
    50: '#7f5bbd',
    500: '#3a15a0',
    950: '#000000',
  },
}
SCSS
$custom: #3a15a0;
$custom-light: #7f5bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a15a0",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 160
  },
  "hsl": {
    "h": 255.971,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3651,
    "c": 0.19769,
    "h": 282.7
  },
  "luminance": 0.03974
}

Semantic roles & 50–950 ramp

primary
#3A15A0
secondary
#A6C849
accent
#F334C1
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A15A0

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

Preview Lab → · Contrast checker → · Palette generator →

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