#3F1F86#3F1F86

#3F1F86 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.159 H 289.9°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#3F1F86
RGBrgb(63, 31, 134)
HSLhsl(259, 62%, 32%)
HSVhsv(259, 77%, 53%)
CMYKcmyk(53%, 76.9%, 0%, 47.5%)
CIE-LABlab(22.85, 40.52, -51.97)
CIE-LCHlch(22.85, 65.90, 307.94°)
OKLaboklab(35.31% 0.0541 -0.1493)
OKLCHoklch(35.31% 0.159 289.9)
XYZxyz(6.8417, 3.7577, 22.9144)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F86 #66861F
analogous
#1F3286 #3F1F86 #731F86
triadic
#3F1F86 #863F1F #1F863F
tetradic
#3F1F86 #861F32 #66861F #1F8673
square
#3F1F86 #861F32 #66861F #1F8673
split-complementary
#3F1F86 #86731F #32861F
monochromatic
#100823 #281454 #3F1F86 #562AB8 #754AD5

Accessibility & contrast

On white

11.99
#3F1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3F1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F86
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F86#FFFFFF#000000##FFFFFF
##3F1F861.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003484
Tritanopia (blue-blind)
#253B51
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f1f86;
/* rgb */ color: rgb(63, 31, 134);
/* oklch */ color: oklch(35.3% 0.159 289.9);
Tailwind
colors: {
  custom: {
    50: '#7c5eaa',
    500: '#3f1f86',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f86;
$custom-light: #7c5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f86",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 258.641,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35308,
    "c": 0.15883,
    "h": 289.9
  },
  "luminance": 0.03758
}

Semantic roles & 50–950 ramp

primary
#3F1F86
secondary
#95B849
accent
#E542B3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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