#3B1A94#3B1A94

#3B1A94 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.180 H 285.1°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#3B1A94
RGBrgb(59, 26, 148)
HSLhsl(256, 70%, 34%)
HSVhsv(256, 82%, 58%)
CMYKcmyk(60.1%, 82.4%, 0%, 42%)
CIE-LABlab(23.02, 46.43, -60.43)
CIE-LCHlch(23.02, 76.21, 307.53°)
OKLaboklab(35.75% 0.047 -0.1741)
OKLCHoklch(35.75% 0.18 285.1)
XYZxyz(7.5167, 3.8062, 28.3498)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1A94 #73941A
analogous
#1A3694 #3B1A94 #781A94
triadic
#3B1A94 #943B1A #1A943B
tetradic
#3B1A94 #941A36 #73941A #1A9478
square
#3B1A94 #941A36 #73941A #1A9478
split-complementary
#3B1A94 #94781A #36941A
monochromatic
#11082C #261160 #3B1A94 #5023C8 #7249DF

Accessibility & contrast

On white

11.92
#3B1A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3B1A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1A94
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1A94#FFFFFF#000000##FFFFFF
##3B1A941.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#043F58
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3b1a94;
/* rgb */ color: rgb(59, 26, 148);
/* oklch */ color: oklch(35.8% 0.180 285.1);
Tailwind
colors: {
  custom: {
    50: '#7d5cb5',
    500: '#3b1a94',
    950: '#000000',
  },
}
SCSS
$custom: #3b1a94;
$custom-light: #7d5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1a94",
  "rgb": {
    "r": 59,
    "g": 26,
    "b": 148
  },
  "hsl": {
    "h": 256.23,
    "s": 70.115,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35752,
    "c": 0.18037,
    "h": 285.1
  },
  "luminance": 0.03807
}

Semantic roles & 50–950 ramp

primary
#3B1A94
secondary
#A0C149
accent
#ED3BBD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B1A94

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

Preview Lab → · Contrast checker → · Palette generator →

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