#3A2178#3A2178

#3A2178 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.139 H 290.0°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#3A2178
RGBrgb(58, 33, 120)
HSLhsl(257, 57%, 30%)
HSVhsv(257, 73%, 47%)
CMYKcmyk(51.7%, 72.5%, 0%, 52.9%)
CIE-LABlab(21.37, 34.39, -45.56)
CIE-LCHlch(21.37, 57.08, 307.04°)
OKLaboklab(33.72% 0.0477 -0.1307)
OKLCHoklch(33.72% 0.139 290)
XYZxyz(5.6780, 3.3431, 18.1118)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2178 #5F7821
analogous
#213478 #3A2178 #652178
triadic
#3A2178 #783A21 #21783A
tetradic
#3A2178 #782134 #5F7821 #217865
square
#3A2178 #782134 #5F7821 #217865
split-complementary
#3A2178 #786521 #347821
monochromatic
#0C0718 #231448 #3A2178 #512EA8 #6D47CC

Accessibility & contrast

On white

12.59
#3A2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3A2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2178
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2178#FFFFFF#000000##FFFFFF
##3A21781.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#25374A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a2178;
/* rgb */ color: rgb(58, 33, 120);
/* oklch */ color: oklch(33.7% 0.139 290.0);
Tailwind
colors: {
  custom: {
    50: '#775ea0',
    500: '#3a2178',
    950: '#000000',
  },
}
SCSS
$custom: #3a2178;
$custom-light: #775ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2178",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 257.241,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.33722,
    "c": 0.13916,
    "h": 290
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A2178

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

Preview Lab → · Contrast checker → · Palette generator →

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