#3B1B95#3B1B95

#3B1B95 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.181 H 284.8°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#3B1B95
RGBrgb(59, 27, 149)
HSLhsl(256, 69%, 35%)
HSVhsv(256, 82%, 58%)
CMYKcmyk(60.4%, 81.9%, 0%, 41.6%)
CIE-LABlab(23.28, 46.27, -60.62)
CIE-LCHlch(23.28, 76.26, 307.35°)
OKLaboklab(35.97% 0.046 -0.1747)
OKLCHoklch(35.97% 0.181 284.8)
XYZxyz(7.6187, 3.8831, 28.7760)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1B95 #75951B
analogous
#1B3895 #3B1B95 #781B95
triadic
#3B1B95 #953B1B #1B953B
tetradic
#3B1B95 #951B38 #75951B #1B9578
square
#3B1B95 #951B38 #75951B #1B9578
split-complementary
#3B1B95 #95781B #38951B
monochromatic
#12082D #261261 #3B1B95 #5024C9 #724CDF

Accessibility & contrast

On white

11.82
#3B1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3B1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1B95
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1B95#FFFFFF#000000##FFFFFF
##3B1B951.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#014059
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3b1b95;
/* rgb */ color: rgb(59, 27, 149);
/* oklch */ color: oklch(36.0% 0.181 284.8);
Tailwind
colors: {
  custom: {
    50: '#7d5db5',
    500: '#3b1b95',
    950: '#000000',
  },
}
SCSS
$custom: #3b1b95;
$custom-light: #7d5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1b95",
  "rgb": {
    "r": 59,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 255.738,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35965,
    "c": 0.18067,
    "h": 284.8
  },
  "luminance": 0.03884
}

Semantic roles & 50–950 ramp

primary
#3B1B95
secondary
#A2C14B
accent
#EC3CBE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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