#3A1F85#3A1F85

#3A1F85 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.158 H 287.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#3A1F85
RGBrgb(58, 31, 133)
HSLhsl(256, 62%, 32%)
HSVhsv(256, 77%, 52%)
CMYKcmyk(56.4%, 76.7%, 0%, 47.8%)
CIE-LABlab(22.20, 39.45, -52.43)
CIE-LCHlch(22.20, 65.62, 306.96°)
OKLaboklab(34.69% 0.0465 -0.1509)
OKLCHoklch(34.69% 0.158 287.1)
XYZxyz(6.4673, 3.5726, 22.5346)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1F85 #6A851F
analogous
#1F3785 #3A1F85 #6D1F85
triadic
#3A1F85 #853A1F #1F853A
tetradic
#3A1F85 #851F37 #6A851F #1F856D
square
#3A1F85 #851F37 #6A851F #1F856D
split-complementary
#3A1F85 #856D1F #37851F
monochromatic
#0F0822 #241353 #3A1F85 #502BB7 #6E4AD5

Accessibility & contrast

On white

12.25
#3A1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3A1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1F85
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1F85#FFFFFF#000000##FFFFFF
##3A1F851.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#1A3B50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a1f85;
/* rgb */ color: rgb(58, 31, 133);
/* oklch */ color: oklch(34.7% 0.158 287.1);
Tailwind
colors: {
  custom: {
    50: '#795ea9',
    500: '#3a1f85',
    950: '#000000',
  },
}
SCSS
$custom: #3a1f85;
$custom-light: #795ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1f85",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 255.882,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34692,
    "c": 0.15785,
    "h": 287.1
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#3A1F85
secondary
#9AB749
accent
#E543BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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