#3B1794#3B1794

#3B1794 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.183 H 285.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#3B1794
RGBrgb(59, 23, 148)
HSLhsl(257, 73%, 34%)
HSVhsv(257, 84%, 58%)
CMYKcmyk(60.1%, 84.5%, 0%, 42%)
CIE-LABlab(22.59, 47.70, -61.15)
CIE-LCHlch(22.59, 77.56, 307.96°)
OKLaboklab(35.45% 0.0487 -0.1762)
OKLCHoklch(35.45% 0.183 285.4)
XYZxyz(7.4537, 3.6803, 28.3288)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1794 #709417
analogous
#173194 #3B1794 #791794
triadic
#3B1794 #943B17 #17943B
tetradic
#3B1794 #941731 #709417 #179479
square
#3B1794 #941731 #709417 #179479
split-complementary
#3B1794 #947917 #319417
monochromatic
#11072A #260F5F #3B1794 #501FC9 #7144E2

Accessibility & contrast

On white

12.10
#3B1794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3B1794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1794
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1794#FFFFFF#000000##FFFFFF
##3B17941.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#043E57
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3b1794;
/* rgb */ color: rgb(59, 23, 148);
/* oklch */ color: oklch(35.5% 0.183 285.4);
Tailwind
colors: {
  custom: {
    50: '#7d5bb5',
    500: '#3b1794',
    950: '#000000',
  },
}
SCSS
$custom: #3b1794;
$custom-light: #7d5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1794",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 257.28,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35452,
    "c": 0.18281,
    "h": 285.4
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

primary
#3B1794
secondary
#9EC344
accent
#F038BB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B1794

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

Preview Lab → · Contrast checker → · Palette generator →

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