#3A1081#3A1081

#3A1081 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.167 H 290.4°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#3A1081
RGBrgb(58, 16, 129)
HSLhsl(262, 78%, 28%)
HSVhsv(262, 88%, 51%)
CMYKcmyk(55%, 87.6%, 0%, 49.4%)
CIE-LABlab(19.45, 45.07, -54.44)
CIE-LCHlch(19.45, 70.67, 309.62°)
OKLaboklab(32.66% 0.0583 -0.1565)
OKLCHoklch(32.66% 0.167 290.4)
XYZxyz(5.8915, 2.8548, 21.0052)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1081 #578110
analogous
#101E81 #3A1081 #721081
triadic
#3A1081 #813A10 #10813A
tetradic
#3A1081 #81101E #578110 #108172
square
#3A1081 #81101E #578110 #108172
split-complementary
#3A1081 #817210 #1E8110
monochromatic
#0C031B #22094B #3A1081 #5217B7 #6D27E4

Accessibility & contrast

On white

13.37
#3A1081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1081
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1081#FFFFFF#000000##FFFFFF
##3A10811.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#1F344B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1081;
/* rgb */ color: rgb(58, 16, 129);
/* oklch */ color: oklch(32.7% 0.167 290.4);
Tailwind
colors: {
  custom: {
    50: '#7a56a7',
    500: '#3a1081',
    950: '#000000',
  },
}
SCSS
$custom: #3a1081;
$custom-light: #7a56a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1081",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 129
  },
  "hsl": {
    "h": 262.301,
    "s": 77.931,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32656,
    "c": 0.16704,
    "h": 290.4
  },
  "luminance": 0.02855
}

Semantic roles & 50–950 ramp

primary
#3A1081
secondary
#87B736
accent
#F433AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #3A1081

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

Preview Lab → · Contrast checker → · Palette generator →

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