#3A2177#3A2177

#3A2177 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.138 H 290.3°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#3A2177
RGBrgb(58, 33, 119)
HSLhsl(257, 57%, 30%)
HSVhsv(257, 72%, 47%)
CMYKcmyk(51.3%, 72.3%, 0%, 53.3%)
CIE-LABlab(21.28, 34.08, -45.07)
CIE-LCHlch(21.28, 56.51, 307.09°)
OKLaboklab(33.63% 0.0479 -0.1293)
OKLCHoklch(33.63% 0.138 290.3)
XYZxyz(5.6176, 3.3189, 17.7938)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2177 #5E7721
analogous
#213377 #3A2177 #652177
triadic
#3A2177 #773A21 #21773A
tetradic
#3A2177 #772133 #5E7721 #217765
square
#3A2177 #772133 #5E7721 #217765
split-complementary
#3A2177 #776521 #337721
monochromatic
#0C0718 #231447 #3A2177 #512EA7 #6D47CC

Accessibility & contrast

On white

12.62
#3A2177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3A2177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2177
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2177#FFFFFF#000000##FFFFFF
##3A21771.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#003175
Tritanopia (blue-blind)
#263749
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a2177;
/* rgb */ color: rgb(58, 33, 119);
/* oklch */ color: oklch(33.6% 0.138 290.3);
Tailwind
colors: {
  custom: {
    50: '#775e9f',
    500: '#3a2177',
    950: '#000000',
  },
}
SCSS
$custom: #3a2177;
$custom-light: #775e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2177",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 257.442,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3363,
    "c": 0.13787,
    "h": 290.3
  },
  "luminance": 0.03319
}

Semantic roles & 50–950 ramp

primary
#3A2177
secondary
#8EAA4A
accent
#E048B4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #3A2177

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

Preview Lab → · Contrast checker → · Palette generator →

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