#3B1381#3B1381

#3B1381 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.165 H 290.7°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#3B1381
RGBrgb(59, 19, 129)
HSLhsl(262, 74%, 29%)
HSVhsv(262, 85%, 51%)
CMYKcmyk(54.3%, 85.3%, 0%, 49.4%)
CIE-LABlab(19.96, 44.04, -53.59)
CIE-LCHlch(19.96, 69.36, 309.41°)
OKLaboklab(33.03% 0.0582 -0.1541)
OKLCHoklch(33.03% 0.165 290.7)
XYZxyz(5.9978, 2.9803, 21.0238)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1381 #598113
analogous
#132281 #3B1381 #721381
triadic
#3B1381 #813B13 #13813B
tetradic
#3B1381 #811322 #598113 #138172
square
#3B1381 #811322 #598113 #138172
split-complementary
#3B1381 #817213 #228113
monochromatic
#0C041B #230B4C #3B1381 #531BB6 #6F2EE0

Accessibility & contrast

On white

13.16
#3B1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3B1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1381
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1381#FFFFFF#000000##FFFFFF
##3B13811.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#21354C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3b1381;
/* rgb */ color: rgb(59, 19, 129);
/* oklch */ color: oklch(33.0% 0.165 290.7);
Tailwind
colors: {
  custom: {
    50: '#7a58a7',
    500: '#3b1381',
    950: '#000000',
  },
}
SCSS
$custom: #3b1381;
$custom-light: #7a58a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1381",
  "rgb": {
    "r": 59,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 261.818,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33035,
    "c": 0.16469,
    "h": 290.7
  },
  "luminance": 0.02981
}

Semantic roles & 50–950 ramp

primary
#3B1381
secondary
#89B63A
accent
#F137AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #3B1381

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

Preview Lab → · Contrast checker → · Palette generator →

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