#3B1B98#3B1B98

#3B1B98 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.184 H 284.2°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#3B1B98
RGBrgb(59, 27, 152)
HSLhsl(255, 70%, 35%)
HSVhsv(255, 82%, 60%)
CMYKcmyk(61.2%, 82.2%, 0%, 40.4%)
CIE-LABlab(23.61, 47.13, -61.93)
CIE-LCHlch(23.61, 77.83, 307.27°)
OKLaboklab(36.29% 0.045 -0.1785)
OKLCHoklch(36.29% 0.184 284.2)
XYZxyz(7.8613, 3.9802, 30.0537)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1B98 #78981B
analogous
#1B3A98 #3B1B98 #791B98
triadic
#3B1B98 #983B1B #1B983B
tetradic
#3B1B98 #981B3A #78981B #1B9879
square
#3B1B98 #981B3A #78981B #1B9879
split-complementary
#3B1B98 #98791B #3A981B
monochromatic
#130930 #271264 #3B1B98 #4F24CC #734EE0

Accessibility & contrast

On white

11.69
#3B1B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3B1B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1B98
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1B98#FFFFFF#000000##FFFFFF
##3B1B981.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3b1b98;
/* rgb */ color: rgb(59, 27, 152);
/* oklch */ color: oklch(36.3% 0.184 284.2);
Tailwind
colors: {
  custom: {
    50: '#7e5db8',
    500: '#3b1b98',
    950: '#000000',
  },
}
SCSS
$custom: #3b1b98;
$custom-light: #7e5db8;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1b98",
  "rgb": {
    "r": 59,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 255.36,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36286,
    "c": 0.18412,
    "h": 284.2
  },
  "luminance": 0.03981
}

Semantic roles & 50–950 ramp

primary
#3B1B98
secondary
#A4C24D
accent
#ED3BBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B1B98

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

Preview Lab → · Contrast checker → · Palette generator →

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