#3A1E83#3A1E83

#3A1E83 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.156 H 287.8°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#3A1E83
RGBrgb(58, 30, 131)
HSLhsl(257, 63%, 32%)
HSVhsv(257, 77%, 51%)
CMYKcmyk(55.7%, 77.1%, 0%, 48.6%)
CIE-LABlab(21.82, 39.37, -51.80)
CIE-LCHlch(21.82, 65.06, 307.24°)
OKLaboklab(34.36% 0.0478 -0.149)
OKLCHoklch(34.36% 0.156 287.8)
XYZxyz(6.3047, 3.4665, 21.8052)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E83 #67831E
analogous
#1E3583 #3A1E83 #6D1E83
triadic
#3A1E83 #833A1E #1E833A
tetradic
#3A1E83 #831E35 #67831E #1E836D
square
#3A1E83 #831E35 #67831E #1E836D
split-complementary
#3A1E83 #836D1E #35831E
monochromatic
#0E071F #241351 #3A1E83 #5029B5 #6E47D5

Accessibility & contrast

On white

12.40
#3A1E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3A1E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E83
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E83#FFFFFF#000000##FFFFFF
##3A1E831.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1e83;
/* rgb */ color: rgb(58, 30, 131);
/* oklch */ color: oklch(34.4% 0.156 287.8);
Tailwind
colors: {
  custom: {
    50: '#795da8',
    500: '#3a1e83',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e83;
$custom-light: #795da8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e83",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 131
  },
  "hsl": {
    "h": 256.634,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34363,
    "c": 0.15648,
    "h": 287.8
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#3A1E83
secondary
#97B647
accent
#E642B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1E83

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

Preview Lab → · Contrast checker → · Palette generator →

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