#3A177B#3A177B

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

Color values

HEX#3A177B
RGBrgb(58, 23, 123)
HSLhsl(261, 68%, 29%)
HSVhsv(261, 81%, 48%)
CMYKcmyk(52.8%, 81.3%, 0%, 51.8%)
CIE-LABlab(19.81, 40.50, -50.03)
CIE-LCHlch(19.81, 64.37, 308.99°)
OKLaboklab(32.71% 0.0558 -0.1438)
OKLCHoklch(32.71% 0.154 291.2)
XYZxyz(5.6255, 2.9422, 19.0065)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A177B #587B17
analogous
#17267B #3A177B #6C177B
triadic
#3A177B #7B3A17 #177B3A
tetradic
#3A177B #7B1726 #587B17 #177B6C
square
#3A177B #7B1726 #587B17 #177B6C
split-complementary
#3A177B #7B6C17 #267B17
monochromatic
#0C051A #220D47 #3A177B #5221AF #6D33D9

Accessibility & contrast

On white

13.22
#3A177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A177B
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A177B#FFFFFF#000000##FFFFFF
##3A177B1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a177b;
/* rgb */ color: rgb(58, 23, 123);
/* oklch */ color: oklch(32.7% 0.154 291.2);
Tailwind
colors: {
  custom: {
    50: '#7859a2',
    500: '#3a177b',
    950: '#000000',
  },
}
SCSS
$custom: #3a177b;
$custom-light: #7859a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a177b",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 261,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32712,
    "c": 0.15422,
    "h": 291.2
  },
  "luminance": 0.02942
}

Semantic roles & 50–950 ramp

primary
#3A177B
secondary
#88B03E
accent
#EB3CAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A177B

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

Preview Lab → · Contrast checker → · Palette generator →

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