#3A17A1#3A17A1

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

Color values

HEX#3A17A1
RGBrgb(58, 23, 161)
HSLhsl(255, 75%, 36%)
HSVhsv(255, 86%, 63%)
CMYKcmyk(64%, 85.7%, 0%, 36.9%)
CIE-LABlab(23.95, 51.24, -66.88)
CIE-LCHlch(23.95, 84.25, 307.46°)
OKLaboklab(36.79% 0.0422 -0.1929)
OKLCHoklch(36.79% 0.197 282.3)
XYZxyz(8.4823, 4.0849, 34.0528)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A17A1 #7EA117
analogous
#1739A1 #3A17A1 #7F17A1
triadic
#3A17A1 #A13A17 #17A13A
tetradic
#3A17A1 #A11739 #7EA117 #17A17F
square
#3A17A1 #A11739 #7EA117 #17A17F
split-complementary
#3A17A1 #A17F17 #39A117
monochromatic
#130836 #270F6B #3A17A1 #4D1FD7 #744DE6

Accessibility & contrast

On white

11.56
#3A17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A17A1
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A17A1#FFFFFF#000000##FFFFFF
##3A17A11.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.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: #3a17a1;
/* rgb */ color: rgb(58, 23, 161);
/* oklch */ color: oklch(36.8% 0.197 282.3);
Tailwind
colors: {
  custom: {
    50: '#7f5cbe',
    500: '#3a17a1',
    950: '#000000',
  },
}
SCSS
$custom: #3a17a1;
$custom-light: #7f5cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3a17a1",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 255.217,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36794,
    "c": 0.19747,
    "h": 282.3
  },
  "luminance": 0.04086
}

Semantic roles & 50–950 ramp

primary
#3A17A1
secondary
#A8C74C
accent
#F236C2
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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