#3B177B#3B177B

#3B177B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.154 H 291.9°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#3B177B
RGBrgb(59, 23, 123)
HSLhsl(262, 68%, 29%)
HSVhsv(262, 81%, 48%)
CMYKcmyk(52%, 81.3%, 0%, 51.8%)
CIE-LABlab(19.93, 40.65, -49.83)
CIE-LCHlch(19.93, 64.30, 309.21°)
OKLaboklab(32.82% 0.0575 -0.1431)
OKLCHoklch(32.82% 0.154 291.9)
XYZxyz(5.6842, 2.9724, 19.0093)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B177B #577B17
analogous
#17257B #3B177B #6D177B
triadic
#3B177B #7B3B17 #177B3B
tetradic
#3B177B #7B1725 #577B17 #177B6D
square
#3B177B #7B1725 #577B17 #177B6D
split-complementary
#3B177B #7B6D17 #257B17
monochromatic
#0C051A #220D47 #3B177B #5421AF #6F33D9

Accessibility & contrast

On white

13.17
#3B177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3B177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B177B
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B177B#FFFFFF#000000##FFFFFF
##3B177B1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#253449
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3b177b;
/* rgb */ color: rgb(59, 23, 123);
/* oklch */ color: oklch(32.8% 0.154 291.9);
Tailwind
colors: {
  custom: {
    50: '#7959a2',
    500: '#3b177b',
    950: '#000000',
  },
}
SCSS
$custom: #3b177b;
$custom-light: #7959a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3b177b",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 261.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32825,
    "c": 0.15423,
    "h": 291.9
  },
  "luminance": 0.02973
}

Semantic roles & 50–950 ramp

primary
#3B177B
secondary
#87B03E
accent
#EB3CAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B177B

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

Preview Lab → · Contrast checker → · Palette generator →

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