#3B1F96#3B1F96

#3B1F96 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.178 H 284.0°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#3B1F96
RGBrgb(59, 31, 150)
HSLhsl(254, 66%, 35%)
HSVhsv(254, 79%, 59%)
CMYKcmyk(60.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(24.04, 44.68, -59.99)
CIE-LCHlch(24.04, 74.80, 306.68°)
OKLaboklab(36.52% 0.0432 -0.1729)
OKLCHoklch(36.52% 0.178 284)
XYZxyz(7.7969, 4.1113, 29.2309)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1F96 #7A961F
analogous
#1F3E96 #3B1F96 #771F96
triadic
#3B1F96 #963B1F #1F963B
tetradic
#3B1F96 #961F3E #7A961F #1F9677
square
#3B1F96 #961F3E #7A961F #1F9677
split-complementary
#3B1F96 #96771F #3E961F
monochromatic
#130A31 #271563 #3B1F96 #4F29C9 #7454DC

Accessibility & contrast

On white

11.52
#3B1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3B1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1F96
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1F96#FFFFFF#000000##FFFFFF
##3B1F961.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3b1f96;
/* rgb */ color: rgb(59, 31, 150);
/* oklch */ color: oklch(36.5% 0.178 284.0);
Tailwind
colors: {
  custom: {
    50: '#7d5fb6',
    500: '#3b1f96',
    950: '#000000',
  },
}
SCSS
$custom: #3b1f96;
$custom-light: #7d5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1f96",
  "rgb": {
    "r": 59,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 254.118,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36521,
    "c": 0.17823,
    "h": 284
  },
  "luminance": 0.04112
}

Semantic roles & 50–950 ramp

primary
#3B1F96
secondary
#A5BF52
accent
#E93FC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3B1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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