#3A1FAD#3A1FAD

#3A1FAD is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 38.9% C 0.205 H 279.7°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#3A1FAD
RGBrgb(58, 31, 173)
HSLhsl(251, 70%, 40%)
HSVhsv(251, 82%, 68%)
CMYKcmyk(66.5%, 82.1%, 0%, 32.2%)
CIE-LABlab(26.44, 51.35, -70.02)
CIE-LCHlch(26.44, 86.83, 306.25°)
OKLaboklab(38.9% 0.0345 -0.2022)
OKLCHoklch(38.9% 0.205 279.7)
XYZxyz(9.7753, 4.8958, 39.9569)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1FAD #92AD1F
analogous
#1F4BAD #3A1FAD #811FAD
triadic
#3A1FAD #AD3A1F #1FAD3A
tetradic
#3A1FAD #AD1F4B #92AD1F #1FAD81
square
#3A1FAD #AD1F4B #92AD1F #1FAD81
split-complementary
#3A1FAD #AD811F #4BAD1F
monochromatic
#170C45 #291679 #3A1FAD #502FDA #7C63E3

Accessibility & contrast

On white

10.61
#3A1FAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3A1FAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1FAD
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1FAD#FFFFFF#000000##FFFFFF
##3A1FAD1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B1
Deuteranopia (green-blind)
#0039AB
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3a1fad;
/* rgb */ color: rgb(58, 31, 173);
/* oklch */ color: oklch(38.9% 0.205 279.7);
Tailwind
colors: {
  custom: {
    50: '#8160c7',
    500: '#3a1fad',
    950: '#000000',
  },
}
SCSS
$custom: #3a1fad;
$custom-light: #8160c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1fad",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 173
  },
  "hsl": {
    "h": 251.408,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.389,
    "c": 0.2051,
    "h": 279.7
  },
  "luminance": 0.04897
}

Semantic roles & 50–950 ramp

primary
#3A1FAD
secondary
#B4C860
accent
#EC3BCB
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A1FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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