#3A1FB4#3A1FB4

#3A1FB4 is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.7% C 0.213 H 278.7°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#3A1FB4
RGBrgb(58, 31, 180)
HSLhsl(251, 71%, 41%)
HSVhsv(251, 83%, 71%)
CMYKcmyk(67.8%, 82.8%, 0%, 29.4%)
CIE-LABlab(27.22, 53.38, -72.91)
CIE-LCHlch(27.22, 90.36, 306.21°)
OKLaboklab(39.67% 0.0323 -0.2106)
OKLCHoklch(39.67% 0.213 278.7)
XYZxyz(10.4705, 5.1739, 43.6180)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1FB4 #99B41F
analogous
#1F4FB4 #3A1FB4 #851FB4
triadic
#3A1FB4 #B43A1F #1FB43A
tetradic
#3A1FB4 #B41F4F #99B41F #1FB485
square
#3A1FB4 #B41F4F #99B41F #1FB485
split-complementary
#3A1FB4 #B4851F #4FB41F
monochromatic
#180D4C #291680 #3A1FB4 #5334DC #7F68E5

Accessibility & contrast

On white

10.32
#3A1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3A1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1FB4
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1FB4#FFFFFF#000000##FFFFFF
##3A1FB41.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003AB1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3a1fb4;
/* rgb */ color: rgb(58, 31, 180);
/* oklch */ color: oklch(39.7% 0.213 278.7);
Tailwind
colors: {
  custom: {
    50: '#8261cc',
    500: '#3a1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #3a1fb4;
$custom-light: #8261cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1fb4",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 250.872,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39674,
    "c": 0.21302,
    "h": 278.7
  },
  "luminance": 0.05175
}

Semantic roles & 50–950 ramp

primary
#3A1FB4
secondary
#B8CB64
accent
#ED3ACD
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3A1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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