#3A1F91#3A1F91

#3A1F91 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.172 H 284.5°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#3A1F91
RGBrgb(58, 31, 145)
HSLhsl(254, 65%, 35%)
HSVhsv(254, 79%, 57%)
CMYKcmyk(60%, 78.6%, 0%, 43.1%)
CIE-LABlab(23.42, 43.06, -57.93)
CIE-LCHlch(23.42, 72.18, 306.63°)
OKLaboklab(35.91% 0.0431 -0.1669)
OKLCHoklch(35.91% 0.172 284.5)
XYZxyz(7.3442, 3.9234, 27.1529)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1F91 #76911F
analogous
#1F3D91 #3A1F91 #731F91
triadic
#3A1F91 #913A1F #1F913A
tetradic
#3A1F91 #911F3D #76911F #1F9173
square
#3A1F91 #911F3D #76911F #1F9173
split-complementary
#3A1F91 #91731F #3D911F
monochromatic
#12092C #26145F #3A1F91 #4E2AC3 #7151DA

Accessibility & contrast

On white

11.77
#3A1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3A1F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1F91
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1F91#FFFFFF#000000##FFFFFF
##3A1F911.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#054057
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a1f91;
/* rgb */ color: rgb(58, 31, 145);
/* oklch */ color: oklch(35.9% 0.172 284.5);
Tailwind
colors: {
  custom: {
    50: '#7b5eb2',
    500: '#3a1f91',
    950: '#000000',
  },
}
SCSS
$custom: #3a1f91;
$custom-light: #7b5eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1f91",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 254.211,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35908,
    "c": 0.1724,
    "h": 284.5
  },
  "luminance": 0.03924
}

Semantic roles & 50–950 ramp

primary
#3A1F91
secondary
#A3BD4F
accent
#E840C0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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