#3B1FB4#3B1FB4

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

Color values

HEX#3B1FB4
RGBrgb(59, 31, 180)
HSLhsl(251, 71%, 41%)
HSVhsv(251, 83%, 71%)
CMYKcmyk(67.2%, 82.8%, 0%, 29.4%)
CIE-LABlab(27.31, 53.46, -72.77)
CIE-LCHlch(27.31, 90.29, 306.30°)
OKLaboklab(39.75% 0.0338 -0.2101)
OKLCHoklch(39.75% 0.213 279.1)
XYZxyz(10.5292, 5.2042, 43.6208)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1FB4 #98B41F
analogous
#1F4EB4 #3B1FB4 #861FB4
triadic
#3B1FB4 #B43B1F #1FB43B
tetradic
#3B1FB4 #B41F4E #98B41F #1FB486
square
#3B1FB4 #B41F4E #98B41F #1FB486
split-complementary
#3B1FB4 #B4861F #4EB41F
monochromatic
#190D4C #2A1680 #3B1FB4 #5434DC #8068E5

Accessibility & contrast

On white

10.29
#3B1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B1FB4
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1FB4#FFFFFF#000000##FFFFFF
##3B1FB41.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b1fb4;
/* rgb */ color: rgb(59, 31, 180);
/* oklch */ color: oklch(39.8% 0.213 279.1);
Tailwind
colors: {
  custom: {
    50: '#8361cc',
    500: '#3b1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #3b1fb4;
$custom-light: #8361cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1fb4",
  "rgb": {
    "r": 59,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 251.275,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39754,
    "c": 0.21282,
    "h": 279.1
  },
  "luminance": 0.05205
}

Semantic roles & 50–950 ramp

primary
#3B1FB4
secondary
#B7CB64
accent
#ED3ACC
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3B1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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