#3A1680#3A1680

#3A1680 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.161 H 289.9°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#3A1680
RGBrgb(58, 22, 128)
HSLhsl(260, 71%, 29%)
HSVhsv(260, 83%, 50%)
CMYKcmyk(54.7%, 82.8%, 0%, 49.8%)
CIE-LABlab(20.17, 42.37, -52.62)
CIE-LCHlch(20.17, 67.56, 308.84°)
OKLaboklab(33.12% 0.0549 -0.1513)
OKLCHoklch(33.12% 0.161 289.9)
XYZxyz(5.9270, 3.0316, 20.6907)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1680 #5C8016
analogous
#162780 #3A1680 #6F1680
triadic
#3A1680 #803A16 #16803A
tetradic
#3A1680 #801627 #5C8016 #16806F
square
#3A1680 #801627 #5C8016 #16806F
split-complementary
#3A1680 #806F16 #278016
monochromatic
#0C041A #220D4C #3A1680 #521FB4 #6D34DC

Accessibility & contrast

On white

13.07
#3A1680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3A1680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1680
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1680#FFFFFF#000000##FFFFFF
##3A16801.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#1F354C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a1680;
/* rgb */ color: rgb(58, 22, 128);
/* oklch */ color: oklch(33.1% 0.161 289.9);
Tailwind
colors: {
  custom: {
    50: '#7959a6',
    500: '#3a1680',
    950: '#000000',
  },
}
SCSS
$custom: #3a1680;
$custom-light: #7959a6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1680",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 260.377,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33117,
    "c": 0.16096,
    "h": 289.9
  },
  "luminance": 0.03032
}

Semantic roles & 50–950 ramp

primary
#3A1680
secondary
#8CB53D
accent
#ED3AB1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A1680

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

Preview Lab → · Contrast checker → · Palette generator →

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