#3B177D#3B177D

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

Color values

HEX#3B177D
RGBrgb(59, 23, 125)
HSLhsl(261, 69%, 29%)
HSVhsv(261, 82%, 49%)
CMYKcmyk(52.8%, 81.6%, 0%, 51%)
CIE-LABlab(20.14, 41.21, -50.77)
CIE-LCHlch(20.14, 65.39, 309.07°)
OKLaboklab(33.03% 0.0568 -0.1459)
OKLCHoklch(33.03% 0.157 291.3)
XYZxyz(5.8106, 3.0230, 19.6754)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B177D #597D17
analogous
#17267D #3B177D #6E177D
triadic
#3B177D #7D3B17 #177D3B
tetradic
#3B177D #7D1726 #597D17 #177D6E
square
#3B177D #7D1726 #597D17 #177D6E
split-complementary
#3B177D #7D6E17 #267D17
monochromatic
#0C051A #230D49 #3B177D #5321B1 #6F35DA

Accessibility & contrast

On white

13.09
#3B177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B177D
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B177D#FFFFFF#000000##FFFFFF
##3B177D1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#24344A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3b177d;
/* rgb */ color: rgb(59, 23, 125);
/* oklch */ color: oklch(33.0% 0.157 291.3);
Tailwind
colors: {
  custom: {
    50: '#7959a4',
    500: '#3b177d',
    950: '#000000',
  },
}
SCSS
$custom: #3b177d;
$custom-light: #7959a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3b177d",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 261.176,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33028,
    "c": 0.15655,
    "h": 291.3
  },
  "luminance": 0.03023
}

Semantic roles & 50–950 ramp

primary
#3B177D
secondary
#89B23E
accent
#EC3CAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B177D

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

Preview Lab → · Contrast checker → · Palette generator →

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