#3F1A82#3F1A82

#3F1A82 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.159 H 291.9°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#3F1A82
RGBrgb(63, 26, 130)
HSLhsl(261, 67%, 31%)
HSVhsv(261, 80%, 51%)
CMYKcmyk(51.5%, 80%, 0%, 49%)
CIE-LABlab(21.61, 41.82, -51.51)
CIE-LCHlch(21.61, 66.35, 309.08°)
OKLaboklab(34.32% 0.0594 -0.1479)
OKLCHoklch(34.32% 0.159 291.9)
XYZxyz(6.4474, 3.4070, 21.4327)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A82 #5D821A
analogous
#1A2982 #3F1A82 #731A82
triadic
#3F1A82 #823F1A #1A823F
tetradic
#3F1A82 #821A29 #5D821A #1A8273
square
#3F1A82 #821A29 #5D821A #1A8273
split-complementary
#3F1A82 #82731A #29821A
monochromatic
#0E061C #26104F #3F1A82 #5824B5 #753ED8

Accessibility & contrast

On white

12.49
#3F1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3F1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1A82
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A82#FFFFFF#000000##FFFFFF
##3F1A821.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#29374E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1a82;
/* rgb */ color: rgb(63, 26, 130);
/* oklch */ color: oklch(34.3% 0.159 291.9);
Tailwind
colors: {
  custom: {
    50: '#7c5ba7',
    500: '#3f1a82',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a82;
$custom-light: #7c5ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a82",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 261.346,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34315,
    "c": 0.15939,
    "h": 291.9
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#3F1A82
secondary
#8DB642
accent
#EA3EAD
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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