#3A1FA1#3A1FA1

#3A1FA1 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.191 H 281.5°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#3A1FA1
RGBrgb(58, 31, 161)
HSLhsl(252, 68%, 38%)
HSVhsv(252, 81%, 63%)
CMYKcmyk(64%, 80.7%, 0%, 36.9%)
CIE-LABlab(25.11, 47.83, -64.95)
CIE-LCHlch(25.11, 80.66, 306.37°)
OKLaboklab(37.6% 0.0383 -0.1874)
OKLCHoklch(37.6% 0.191 281.5)
XYZxyz(8.6659, 4.4521, 34.1140)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1FA1 #86A11F
analogous
#1F45A1 #3A1FA1 #7B1FA1
triadic
#3A1FA1 #A13A1F #1FA13A
tetradic
#3A1FA1 #A11F45 #86A11F #1FA17B
square
#3A1FA1 #A11F45 #86A11F #1FA17B
split-complementary
#3A1FA1 #A17B1F #45A11F
monochromatic
#150B3A #28156E #3A1FA1 #4C29D4 #765BDF

Accessibility & contrast

On white

11.11
#3A1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3A1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1FA1
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1FA1#FFFFFF#000000##FFFFFF
##3A1FA11.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a1fa1;
/* rgb */ color: rgb(58, 31, 161);
/* oklch */ color: oklch(37.6% 0.191 281.5);
Tailwind
colors: {
  custom: {
    50: '#7f5fbe',
    500: '#3a1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #3a1fa1;
$custom-light: #7f5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1fa1",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 252.462,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37595,
    "c": 0.19128,
    "h": 281.5
  },
  "luminance": 0.04453
}

Semantic roles & 50–950 ramp

primary
#3A1FA1
secondary
#ADC458
accent
#EB3DC7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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