#3B1FA6#3B1FA6

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

Color values

HEX#3B1FA6
RGBrgb(59, 31, 166)
HSLhsl(252, 69%, 39%)
HSVhsv(252, 81%, 65%)
CMYKcmyk(64.5%, 81.3%, 0%, 34.9%)
CIE-LABlab(25.75, 49.40, -66.93)
CIE-LCHlch(25.75, 83.19, 306.43°)
OKLaboklab(38.22% 0.0382 -0.1931)
OKLCHoklch(38.22% 0.197 281.2)
XYZxyz(9.1744, 4.6623, 36.4854)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1FA6 #8AA61F
analogous
#1F47A6 #3B1FA6 #7E1FA6
triadic
#3B1FA6 #A63B1F #1FA63B
tetradic
#3B1FA6 #A61F47 #8AA61F #1FA67E
square
#3B1FA6 #A61F47 #8AA61F #1FA67E
split-complementary
#3B1FA6 #A67E1F #47A61F
monochromatic
#160C3F #291572 #3B1FA6 #4F2BD7 #795EE1

Accessibility & contrast

On white

10.87
#3B1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B1FA6
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1FA6#FFFFFF#000000##FFFFFF
##3B1FA61.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b1fa6;
/* rgb */ color: rgb(59, 31, 166);
/* oklch */ color: oklch(38.2% 0.197 281.2);
Tailwind
colors: {
  custom: {
    50: '#8060c2',
    500: '#3b1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #3b1fa6;
$custom-light: #8060c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1fa6",
  "rgb": {
    "r": 59,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 252.444,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3822,
    "c": 0.1969,
    "h": 281.2
  },
  "luminance": 0.04663
}

Semantic roles & 50–950 ramp

primary
#3B1FA6
secondary
#AFC55B
accent
#EB3CC7
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3B1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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