#3A1D82#3A1D82

#3A1D82 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.156 H 288.2°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#3A1D82
RGBrgb(58, 29, 130)
HSLhsl(257, 64%, 31%)
HSVhsv(257, 78%, 51%)
CMYKcmyk(55.4%, 77.7%, 0%, 49%)
CIE-LABlab(21.54, 39.59, -51.63)
CIE-LCHlch(21.54, 65.06, 307.48°)
OKLaboklab(34.14% 0.0489 -0.1485)
OKLCHoklch(34.14% 0.156 288.2)
XYZxyz(6.2124, 3.3897, 21.4417)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D82 #65821D
analogous
#1D3282 #3A1D82 #6C1D82
triadic
#3A1D82 #823A1D #1D823A
tetradic
#3A1D82 #821D32 #65821D #1D826C
square
#3A1D82 #821D32 #65821D #1D826C
split-complementary
#3A1D82 #826C1D #32821D
monochromatic
#0D071E #241250 #3A1D82 #5028B4 #6E44D5

Accessibility & contrast

On white

12.51
#3A1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3A1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D82
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D82#FFFFFF#000000##FFFFFF
##3A1D821.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#1D394E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a1d82;
/* rgb */ color: rgb(58, 29, 130);
/* oklch */ color: oklch(34.1% 0.156 288.2);
Tailwind
colors: {
  custom: {
    50: '#795da7',
    500: '#3a1d82',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d82;
$custom-light: #795da7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d82",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 257.228,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34135,
    "c": 0.15635,
    "h": 288.2
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#3A1D82
secondary
#95B546
accent
#E741B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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