#3A1D83#3A1D83

#3A1D83 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.158 H 288.0°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#3A1D83
RGBrgb(58, 29, 131)
HSLhsl(257, 64%, 31%)
HSVhsv(257, 78%, 51%)
CMYKcmyk(55.7%, 77.9%, 0%, 48.6%)
CIE-LABlab(21.64, 39.89, -52.10)
CIE-LCHlch(21.64, 65.62, 307.44°)
OKLaboklab(34.24% 0.0487 -0.1499)
OKLCHoklch(34.24% 0.158 288)
XYZxyz(6.2798, 3.4166, 21.7969)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D83 #66831D
analogous
#1D3383 #3A1D83 #6D1D83
triadic
#3A1D83 #833A1D #1D833A
tetradic
#3A1D83 #831D33 #66831D #1D836D
square
#3A1D83 #831D33 #66831D #1D836D
split-complementary
#3A1D83 #836D1D #33831D
monochromatic
#0E071F #241251 #3A1D83 #5028B5 #6E45D6

Accessibility & contrast

On white

12.47
#3A1D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1D83
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D83#FFFFFF#000000##FFFFFF
##3A1D831.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#1C3A4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a1d83;
/* rgb */ color: rgb(58, 29, 131);
/* oklch */ color: oklch(34.2% 0.158 288.0);
Tailwind
colors: {
  custom: {
    50: '#795da8',
    500: '#3a1d83',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d83;
$custom-light: #795da8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d83",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 257.059,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34235,
    "c": 0.15756,
    "h": 288
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#3A1D83
secondary
#96B646
accent
#E741B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1D83

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

Preview Lab → · Contrast checker → · Palette generator →

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