#3B1779#3B1779

#3B1779 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.152 H 292.5°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#3B1779
RGBrgb(59, 23, 121)
HSLhsl(262, 68%, 28%)
HSVhsv(262, 81%, 47%)
CMYKcmyk(51.2%, 81%, 0%, 52.5%)
CIE-LABlab(19.73, 40.08, -48.88)
CIE-LCHlch(19.73, 63.21, 309.35°)
OKLaboklab(32.63% 0.0581 -0.1403)
OKLCHoklch(32.63% 0.152 292.5)
XYZxyz(5.5603, 2.9229, 18.3567)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1779 #557917
analogous
#172479 #3B1779 #6C1779
triadic
#3B1779 #793B17 #17793B
tetradic
#3B1779 #791724 #557917 #17796C
square
#3B1779 #791724 #557917 #17796C
split-complementary
#3B1779 #796C17 #247917
monochromatic
#0D051A #220D46 #3B1779 #5421AC #6F32D8

Accessibility & contrast

On white

13.25
#3B1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3B1779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1779
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1779#FFFFFF#000000##FFFFFF
##3B17791.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#273348
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3b1779;
/* rgb */ color: rgb(59, 23, 121);
/* oklch */ color: oklch(32.6% 0.152 292.5);
Tailwind
colors: {
  custom: {
    50: '#7859a1',
    500: '#3b1779',
    950: '#000000',
  },
}
SCSS
$custom: #3b1779;
$custom-light: #7859a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1779",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 262.041,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32625,
    "c": 0.1519,
    "h": 292.5
  },
  "luminance": 0.02923
}

Semantic roles & 50–950 ramp

primary
#3B1779
secondary
#85AE3E
accent
#EB3DAB
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B1779

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

Preview Lab → · Contrast checker → · Palette generator →

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