#3A1F82#3A1F82

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

Color values

HEX#3A1F82
RGBrgb(58, 31, 130)
HSLhsl(256, 61%, 32%)
HSVhsv(256, 76%, 51%)
CMYKcmyk(55.4%, 76.2%, 0%, 49%)
CIE-LABlab(21.91, 38.54, -51.02)
CIE-LCHlch(21.91, 63.94, 307.07°)
OKLaboklab(34.4% 0.0473 -0.1467)
OKLCHoklch(34.4% 0.154 287.9)
XYZxyz(6.2630, 3.4909, 21.4586)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1F82 #67821F
analogous
#1F3582 #3A1F82 #6C1F82
triadic
#3A1F82 #823A1F #1F823A
tetradic
#3A1F82 #821F35 #67821F #1F826C
square
#3A1F82 #821F35 #67821F #1F826C
split-complementary
#3A1F82 #826C1F #35821F
monochromatic
#0E071F #241351 #3A1F82 #502BB3 #6E48D3

Accessibility & contrast

On white

12.37
#3A1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3A1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1F82
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1F82#FFFFFF#000000##FFFFFF
##3A1F821.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#1D3A4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a1f82;
/* rgb */ color: rgb(58, 31, 130);
/* oklch */ color: oklch(34.4% 0.154 287.9);
Tailwind
colors: {
  custom: {
    50: '#795ea7',
    500: '#3a1f82',
    950: '#000000',
  },
}
SCSS
$custom: #3a1f82;
$custom-light: #795ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1f82",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 256.364,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34396,
    "c": 0.15416,
    "h": 287.9
  },
  "luminance": 0.03491
}

Semantic roles & 50–950 ramp

primary
#3A1F82
secondary
#97B548
accent
#E543B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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