#3A1FA7#3A1FA7

#3A1FA7 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.198 H 280.6°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#3A1FA7
RGBrgb(58, 31, 167)
HSLhsl(252, 69%, 39%)
HSVhsv(252, 81%, 65%)
CMYKcmyk(65.3%, 81.4%, 0%, 34.5%)
CIE-LABlab(25.77, 49.60, -67.51)
CIE-LCHlch(25.77, 83.77, 306.30°)
OKLaboklab(38.24% 0.0364 -0.1948)
OKLCHoklch(38.24% 0.198 280.6)
XYZxyz(9.2078, 4.6688, 36.9677)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1FA7 #8CA71F
analogous
#1F48A7 #3A1FA7 #7E1FA7
triadic
#3A1FA7 #A73A1F #1FA73A
tetradic
#3A1FA7 #A71F48 #8CA71F #1FA77E
square
#3A1FA7 #A71F48 #8CA71F #1FA77E
split-complementary
#3A1FA7 #A77E1F #48A71F
monochromatic
#160C40 #281573 #3A1FA7 #4E2BD8 #795FE1

Accessibility & contrast

On white

10.86
#3A1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1FA7
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1FA7#FFFFFF#000000##FFFFFF
##3A1FA71.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0038A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a1fa7;
/* rgb */ color: rgb(58, 31, 167);
/* oklch */ color: oklch(38.2% 0.198 280.6);
Tailwind
colors: {
  custom: {
    50: '#8060c2',
    500: '#3a1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #3a1fa7;
$custom-light: #8060c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1fa7",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 251.912,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38244,
    "c": 0.19822,
    "h": 280.6
  },
  "luminance": 0.0467
}

Semantic roles & 50–950 ramp

primary
#3A1FA7
secondary
#B1C65C
accent
#EC3CC9
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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