#3A1FA0#3A1FA0

#3A1FA0 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.190 H 281.7°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#3A1FA0
RGBrgb(58, 31, 160)
HSLhsl(253, 68%, 37%)
HSVhsv(253, 81%, 63%)
CMYKcmyk(63.8%, 80.6%, 0%, 37.3%)
CIE-LABlab(25.00, 47.54, -64.52)
CIE-LCHlch(25.00, 80.14, 306.38°)
OKLaboklab(37.49% 0.0386 -0.1862)
OKLCHoklch(37.49% 0.19 281.7)
XYZxyz(8.5781, 4.4169, 33.6514)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1FA0 #85A01F
analogous
#1F45A0 #3A1FA0 #7A1FA0
triadic
#3A1FA0 #A03A1F #1FA03A
tetradic
#3A1FA0 #A01F45 #85A01F #1FA07A
square
#3A1FA0 #A01F45 #85A01F #1FA07A
split-complementary
#3A1FA0 #A07A1F #45A01F
monochromatic
#150B39 #27156D #3A1FA0 #4D29D3 #765ADF

Accessibility & contrast

On white

11.15
#3A1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3A1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1FA0
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1FA0#FFFFFF#000000##FFFFFF
##3A1FA01.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#00379E
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a1fa0;
/* rgb */ color: rgb(58, 31, 160);
/* oklch */ color: oklch(37.5% 0.190 281.7);
Tailwind
colors: {
  custom: {
    50: '#7e5fbd',
    500: '#3a1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #3a1fa0;
$custom-light: #7e5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1fa0",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 252.558,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37488,
    "c": 0.19012,
    "h": 281.7
  },
  "luminance": 0.04418
}

Semantic roles & 50–950 ramp

primary
#3A1FA0
secondary
#ADC358
accent
#EA3DC6
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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