#3F1A85#3F1A85

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

Color values

HEX#3F1A85
RGBrgb(63, 26, 133)
HSLhsl(261, 67%, 31%)
HSVhsv(261, 80%, 52%)
CMYKcmyk(52.6%, 80.5%, 0%, 47.8%)
CIE-LABlab(21.90, 42.67, -52.91)
CIE-LCHlch(21.90, 67.97, 308.89°)
OKLaboklab(34.61% 0.0584 -0.152)
OKLCHoklch(34.61% 0.163 291)
XYZxyz(6.6517, 3.4887, 22.5087)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A85 #60851A
analogous
#1A2A85 #3F1A85 #741A85
triadic
#3F1A85 #853F1A #1A853F
tetradic
#3F1A85 #851A2A #60851A #1A8574
square
#3F1A85 #851A2A #60851A #1A8574
split-complementary
#3F1A85 #85741A #2A851A
monochromatic
#0F061F #271052 #3F1A85 #5724B8 #7540DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3F1A85#FFFFFF#000000##FFFFFF
##3F1A851.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)
#003688
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#26394F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1a85;
/* rgb */ color: rgb(63, 26, 133);
/* oklch */ color: oklch(34.6% 0.163 291.0);
Tailwind
colors: {
  custom: {
    50: '#7c5caa',
    500: '#3f1a85',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a85;
$custom-light: #7c5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a85",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 260.748,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34613,
    "c": 0.16286,
    "h": 291
  },
  "luminance": 0.03489
}

Semantic roles & 50–950 ramp

primary
#3F1A85
secondary
#90B842
accent
#EA3EAF
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1A85

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

Preview Lab → · Contrast checker → · Palette generator →

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