#3A177A#3A177A

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

Color values

HEX#3A177A
RGBrgb(58, 23, 122)
HSLhsl(261, 68%, 28%)
HSVhsv(261, 81%, 48%)
CMYKcmyk(52.5%, 81.1%, 0%, 52.2%)
CIE-LABlab(19.71, 40.21, -49.56)
CIE-LCHlch(19.71, 63.82, 309.06°)
OKLaboklab(32.61% 0.0562 -0.1424)
OKLCHoklch(32.61% 0.153 291.5)
XYZxyz(5.5632, 2.9173, 18.6785)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A177A #577A17
analogous
#17257A #3A177A #6B177A
triadic
#3A177A #7A3A17 #177A3A
tetradic
#3A177A #7A1725 #577A17 #177A6B
square
#3A177A #7A1725 #577A17 #177A6B
split-complementary
#3A177A #7A6B17 #257A17
monochromatic
#0C051A #220D47 #3A177A #5221AD #6D33D9

Accessibility & contrast

On white

13.26
#3A177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A177A
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A177A#FFFFFF#000000##FFFFFF
##3A177A1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a177a;
/* rgb */ color: rgb(58, 23, 122);
/* oklch */ color: oklch(32.6% 0.153 291.5);
Tailwind
colors: {
  custom: {
    50: '#7859a1',
    500: '#3a177a',
    950: '#000000',
  },
}
SCSS
$custom: #3a177a;
$custom-light: #7859a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a177a",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 261.212,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32611,
    "c": 0.15305,
    "h": 291.5
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#3A177A
secondary
#87AF3E
accent
#EB3DAD
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A177A

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

Preview Lab → · Contrast checker → · Palette generator →

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