#3A1983#3A1983

#3A1983 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.162 H 288.7°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#3A1983
RGBrgb(58, 25, 131)
HSLhsl(259, 68%, 31%)
HSVhsv(259, 81%, 51%)
CMYKcmyk(55.7%, 80.9%, 0%, 48.6%)
CIE-LABlab(20.95, 41.86, -53.23)
CIE-LCHlch(20.95, 67.71, 308.18°)
OKLaboklab(33.76% 0.0517 -0.1531)
OKLCHoklch(33.76% 0.162 288.7)
XYZxyz(6.1881, 3.2332, 21.7663)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1983 #628319
analogous
#192D83 #3A1983 #6F1983
triadic
#3A1983 #833A19 #19833A
tetradic
#3A1983 #83192D #628319 #19836F
square
#3A1983 #83192D #628319 #19836F
split-complementary
#3A1983 #836F19 #2D8319
monochromatic
#0C051C #230F50 #3A1983 #5123B6 #6E3DDA

Accessibility & contrast

On white

12.75
#3A1983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3A1983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1983
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1983#FFFFFF#000000##FFFFFF
##3A19831.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#1C384E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a1983;
/* rgb */ color: rgb(58, 25, 131);
/* oklch */ color: oklch(33.8% 0.162 288.7);
Tailwind
colors: {
  custom: {
    50: '#795aa8',
    500: '#3a1983',
    950: '#000000',
  },
}
SCSS
$custom: #3a1983;
$custom-light: #795aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1983",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 258.679,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33756,
    "c": 0.16162,
    "h": 288.7
  },
  "luminance": 0.03233
}

Semantic roles & 50–950 ramp

primary
#3A1983
secondary
#92B741
accent
#EB3DB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1983

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

Preview Lab → · Contrast checker → · Palette generator →

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