#3A1FA6#3A1FA6

#3A1FA6 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.197 H 280.7°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#3A1FA6
RGBrgb(58, 31, 166)
HSLhsl(252, 69%, 39%)
HSVhsv(252, 81%, 65%)
CMYKcmyk(65.1%, 81.3%, 0%, 34.9%)
CIE-LABlab(25.66, 49.30, -67.08)
CIE-LCHlch(25.66, 83.25, 306.31°)
OKLaboklab(38.14% 0.0367 -0.1936)
OKLCHoklch(38.14% 0.197 280.7)
XYZxyz(9.1157, 4.6320, 36.4827)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1FA6 #8BA61F
analogous
#1F47A6 #3A1FA6 #7D1FA6
triadic
#3A1FA6 #A63A1F #1FA63A
tetradic
#3A1FA6 #A61F47 #8BA61F #1FA67D
square
#3A1FA6 #A61F47 #8BA61F #1FA67D
split-complementary
#3A1FA6 #A67D1F #47A61F
monochromatic
#160C3F #281572 #3A1FA6 #4D2BD7 #795EE1

Accessibility & contrast

On white

10.90
#3A1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3A1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1FA6
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1FA6#FFFFFF#000000##FFFFFF
##3A1FA61.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0038A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a1fa6;
/* rgb */ color: rgb(58, 31, 166);
/* oklch */ color: oklch(38.1% 0.197 280.7);
Tailwind
colors: {
  custom: {
    50: '#8060c2',
    500: '#3a1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #3a1fa6;
$custom-light: #8060c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1fa6",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 252,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38135,
    "c": 0.19707,
    "h": 280.7
  },
  "luminance": 0.04633
}

Semantic roles & 50–950 ramp

primary
#3A1FA6
secondary
#B0C55B
accent
#EB3CC8
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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