#3A1878#3A1878

#3A1878 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.150 H 292.0°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#3A1878
RGBrgb(58, 24, 120)
HSLhsl(261, 67%, 28%)
HSVhsv(261, 80%, 47%)
CMYKcmyk(51.7%, 80%, 0%, 52.9%)
CIE-LABlab(19.67, 39.16, -48.34)
CIE-LCHlch(19.67, 62.21, 309.02°)
OKLaboklab(32.53% 0.056 -0.1388)
OKLCHoklch(32.53% 0.15 292)
XYZxyz(5.4608, 2.9087, 18.0394)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1878 #567818
analogous
#182678 #3A1878 #6A1878
triadic
#3A1878 #783A18 #18783A
tetradic
#3A1878 #781826 #567818 #18786A
square
#3A1878 #781826 #567818 #18786A
split-complementary
#3A1878 #786A18 #267818
monochromatic
#0C051A #210E45 #3A1878 #5322AB #6E34D6

Accessibility & contrast

On white

13.28
#3A1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1878
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1878#FFFFFF#000000##FFFFFF
##3A18781.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#253347
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a1878;
/* rgb */ color: rgb(58, 24, 120);
/* oklch */ color: oklch(32.5% 0.150 292.0);
Tailwind
colors: {
  custom: {
    50: '#7859a0',
    500: '#3a1878',
    950: '#000000',
  },
}
SCSS
$custom: #3a1878;
$custom-light: #7859a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1878",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 261.25,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32526,
    "c": 0.14967,
    "h": 292
  },
  "luminance": 0.02909
}

Semantic roles & 50–950 ramp

primary
#3A1878
secondary
#86AD3F
accent
#EA3EAD
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #3A1878

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

Preview Lab → · Contrast checker → · Palette generator →

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