#3B177A#3B177A

#3B177A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.153 H 292.2°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#3B177A
RGBrgb(59, 23, 122)
HSLhsl(262, 68%, 28%)
HSVhsv(262, 81%, 48%)
CMYKcmyk(51.6%, 81.1%, 0%, 52.2%)
CIE-LABlab(19.83, 40.36, -49.35)
CIE-LCHlch(19.83, 63.76, 309.28°)
OKLaboklab(32.73% 0.0578 -0.1417)
OKLCHoklch(32.73% 0.153 292.2)
XYZxyz(5.6219, 2.9475, 18.6813)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B177A #567A17
analogous
#17247A #3B177A #6C177A
triadic
#3B177A #7A3B17 #177A3B
tetradic
#3B177A #7A1724 #567A17 #177A6C
square
#3B177A #7A1724 #567A17 #177A6C
split-complementary
#3B177A #7A6C17 #247A17
monochromatic
#0C051A #220D47 #3B177A #5421AD #6F33D9

Accessibility & contrast

On white

13.21
#3B177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B177A
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B177A#FFFFFF#000000##FFFFFF
##3B177A1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#263348
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3b177a;
/* rgb */ color: rgb(59, 23, 122);
/* oklch */ color: oklch(32.7% 0.153 292.2);
Tailwind
colors: {
  custom: {
    50: '#7959a1',
    500: '#3b177a',
    950: '#000000',
  },
}
SCSS
$custom: #3b177a;
$custom-light: #7959a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b177a",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 261.818,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32725,
    "c": 0.15306,
    "h": 292.2
  },
  "luminance": 0.02948
}

Semantic roles & 50–950 ramp

primary
#3B177A
secondary
#86AF3E
accent
#EB3DAC
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B177A

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

Preview Lab → · Contrast checker → · Palette generator →

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