#3A1380#3A1380

#3A1380 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.164 H 290.3°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#3A1380
RGBrgb(58, 19, 128)
HSLhsl(261, 74%, 29%)
HSVhsv(261, 85%, 50%)
CMYKcmyk(54.7%, 85.2%, 0%, 49.8%)
CIE-LABlab(19.73, 43.64, -53.34)
CIE-LCHlch(19.73, 68.92, 309.29°)
OKLaboklab(32.82% 0.0569 -0.1534)
OKLCHoklch(32.82% 0.164 290.3)
XYZxyz(5.8730, 2.9235, 20.6727)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1380 #598013
analogous
#132380 #3A1380 #711380
triadic
#3A1380 #803A13 #13803A
tetradic
#3A1380 #801323 #598013 #138071
square
#3A1380 #801323 #598013 #138071
split-complementary
#3A1380 #807113 #238013
monochromatic
#0C041B #220B4B #3A1380 #521BB5 #6D2DE0

Accessibility & contrast

On white

13.25
#3A1380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1380
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1380#FFFFFF#000000##FFFFFF
##3A13801.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#1F344B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a1380;
/* rgb */ color: rgb(58, 19, 128);
/* oklch */ color: oklch(32.8% 0.164 290.3);
Tailwind
colors: {
  custom: {
    50: '#7957a6',
    500: '#3a1380',
    950: '#000000',
  },
}
SCSS
$custom: #3a1380;
$custom-light: #7957a6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1380",
  "rgb": {
    "r": 58,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 261.468,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32817,
    "c": 0.16358,
    "h": 290.3
  },
  "luminance": 0.02924
}

Semantic roles & 50–950 ramp

primary
#3A1380
secondary
#89B539
accent
#F137AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3A1380

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

Preview Lab → · Contrast checker → · Palette generator →

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