#3B1F91#3B1F91

#3B1F91 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.172 H 285.0°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#3B1F91
RGBrgb(59, 31, 145)
HSLhsl(255, 65%, 35%)
HSVhsv(255, 79%, 57%)
CMYKcmyk(59.3%, 78.6%, 0%, 43.1%)
CIE-LABlab(23.52, 43.19, -57.76)
CIE-LCHlch(23.52, 72.12, 306.79°)
OKLaboklab(36% 0.0447 -0.1664)
OKLCHoklch(36% 0.172 285)
XYZxyz(7.4029, 3.9537, 27.1556)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1F91 #75911F
analogous
#1F3C91 #3B1F91 #741F91
triadic
#3B1F91 #913B1F #1F913B
tetradic
#3B1F91 #911F3C #75911F #1F9174
square
#3B1F91 #911F3C #75911F #1F9174
split-complementary
#3B1F91 #91741F #3C911F
monochromatic
#12092C #26145F #3B1F91 #502AC3 #7251DA

Accessibility & contrast

On white

11.73
#3B1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3B1F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1F91
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1F91#FFFFFF#000000##FFFFFF
##3B1F911.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#0B4057
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3b1f91;
/* rgb */ color: rgb(59, 31, 145);
/* oklch */ color: oklch(36.0% 0.172 285.0);
Tailwind
colors: {
  custom: {
    50: '#7c5fb2',
    500: '#3b1f91',
    950: '#000000',
  },
}
SCSS
$custom: #3b1f91;
$custom-light: #7c5fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1f91",
  "rgb": {
    "r": 59,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 254.737,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36003,
    "c": 0.17229,
    "h": 285
  },
  "luminance": 0.03954
}

Semantic roles & 50–950 ramp

primary
#3B1F91
secondary
#A2BD4F
accent
#E840BF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3B1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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