#3A1F86#3A1F86

#3A1F86 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.159 H 286.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#3A1F86
RGBrgb(58, 31, 134)
HSLhsl(256, 62%, 32%)
HSVhsv(256, 77%, 53%)
CMYKcmyk(56.7%, 76.9%, 0%, 47.5%)
CIE-LABlab(22.30, 39.75, -52.90)
CIE-LCHlch(22.30, 66.17, 306.92°)
OKLaboklab(34.79% 0.0462 -0.1522)
OKLCHoklch(34.79% 0.159 286.9)
XYZxyz(6.5367, 3.6004, 22.9001)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1F86 #6B861F
analogous
#1F3886 #3A1F86 #6D1F86
triadic
#3A1F86 #863A1F #1F863A
tetradic
#3A1F86 #861F38 #6B861F #1F866D
square
#3A1F86 #861F38 #6B861F #1F866D
split-complementary
#3A1F86 #866D1F #38861F
monochromatic
#0F0823 #241454 #3A1F86 #502AB8 #6F4AD5

Accessibility & contrast

On white

12.21
#3A1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3A1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1F86
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1F86#FFFFFF#000000##FFFFFF
##3A1F861.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#193C51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a1f86;
/* rgb */ color: rgb(58, 31, 134);
/* oklch */ color: oklch(34.8% 0.159 286.9);
Tailwind
colors: {
  custom: {
    50: '#795eaa',
    500: '#3a1f86',
    950: '#000000',
  },
}
SCSS
$custom: #3a1f86;
$custom-light: #795eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1f86",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 255.728,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34792,
    "c": 0.15907,
    "h": 286.9
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

primary
#3A1F86
secondary
#9BB849
accent
#E542BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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