#3F1A84#3F1A84

#3F1A84 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.162 H 291.3°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#3F1A84
RGBrgb(63, 26, 132)
HSLhsl(261, 67%, 31%)
HSVhsv(261, 80%, 52%)
CMYKcmyk(52.3%, 80.3%, 0%, 48.2%)
CIE-LABlab(21.80, 42.39, -52.44)
CIE-LCHlch(21.80, 67.43, 308.95°)
OKLaboklab(34.51% 0.0588 -0.1507)
OKLCHoklch(34.51% 0.162 291.3)
XYZxyz(6.5830, 3.4612, 22.1465)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A84 #5F841A
analogous
#1A2A84 #3F1A84 #741A84
triadic
#3F1A84 #843F1A #1A843F
tetradic
#3F1A84 #841A2A #5F841A #1A8474
square
#3F1A84 #841A2A #5F841A #1A8474
split-complementary
#3F1A84 #84741A #2A841A
monochromatic
#0E061E #271051 #3F1A84 #5724B7 #753FD9

Accessibility & contrast

On white

12.41
#3F1A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1A84
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A84#FFFFFF#000000##FFFFFF
##3F1A841.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#003282
Tritanopia (blue-blind)
#27384F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1a84;
/* rgb */ color: rgb(63, 26, 132);
/* oklch */ color: oklch(34.5% 0.162 291.3);
Tailwind
colors: {
  custom: {
    50: '#7c5ca9',
    500: '#3f1a84',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a84;
$custom-light: #7c5ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a84",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 260.943,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34513,
    "c": 0.16171,
    "h": 291.3
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#3F1A84
secondary
#8FB842
accent
#EA3EAE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1A84

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

Preview Lab → · Contrast checker → · Palette generator →

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