#3A1678#3A1678

#3A1678 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.152 H 292.3°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#3A1678
RGBrgb(58, 22, 120)
HSLhsl(262, 69%, 28%)
HSVhsv(262, 82%, 47%)
CMYKcmyk(51.7%, 81.7%, 0%, 52.9%)
CIE-LABlab(19.35, 40.11, -48.88)
CIE-LCHlch(19.35, 63.23, 309.37°)
OKLaboklab(32.3% 0.0576 -0.1404)
OKLCHoklch(32.3% 0.152 292.3)
XYZxyz(5.4210, 2.8292, 18.0261)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1678 #547816
analogous
#162378 #3A1678 #6B1678
triadic
#3A1678 #783A16 #16783A
tetradic
#3A1678 #781623 #547816 #16786B
square
#3A1678 #781623 #547816 #16786B
split-complementary
#3A1678 #786B16 #237816
monochromatic
#0C051A #210D44 #3A1678 #531FAC #6E2FD9

Accessibility & contrast

On white

13.41
#3A1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3A1678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1678
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1678#FFFFFF#000000##FFFFFF
##3A16781.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#253247
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1678;
/* rgb */ color: rgb(58, 22, 120);
/* oklch */ color: oklch(32.3% 0.152 292.3);
Tailwind
colors: {
  custom: {
    50: '#7858a0',
    500: '#3a1678',
    950: '#000000',
  },
}
SCSS
$custom: #3a1678;
$custom-light: #7858a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1678",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 262.041,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32297,
    "c": 0.15172,
    "h": 292.3
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#3A1678
secondary
#84AD3C
accent
#EC3CAB
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3A1678

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

Preview Lab → · Contrast checker → · Palette generator →

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