#3F1F87#3F1F87

#3F1F87 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.160 H 289.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#3F1F87
RGBrgb(63, 31, 135)
HSLhsl(258, 63%, 33%)
HSVhsv(258, 77%, 53%)
CMYKcmyk(53.3%, 77%, 0%, 47.1%)
CIE-LABlab(22.95, 40.81, -52.44)
CIE-LCHlch(22.95, 66.45, 307.89°)
OKLaboklab(35.41% 0.0538 -0.1507)
OKLCHoklch(35.41% 0.16 289.7)
XYZxyz(6.9118, 3.7857, 23.2835)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F87 #67871F
analogous
#1F3387 #3F1F87 #731F87
triadic
#3F1F87 #873F1F #1F873F
tetradic
#3F1F87 #871F33 #67871F #1F8773
square
#3F1F87 #871F33 #67871F #1F8773
split-complementary
#3F1F87 #87731F #33871F
monochromatic
#110823 #281455 #3F1F87 #562AB9 #764BD6

Accessibility & contrast

On white

11.95
#3F1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3F1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F87
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F87#FFFFFF#000000##FFFFFF
##3F1F871.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#243C52
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f1f87;
/* rgb */ color: rgb(63, 31, 135);
/* oklch */ color: oklch(35.4% 0.160 289.7);
Tailwind
colors: {
  custom: {
    50: '#7c5eab',
    500: '#3f1f87',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f87;
$custom-light: #7c5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f87",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 258.462,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35405,
    "c": 0.16003,
    "h": 289.7
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#3F1F87
secondary
#96B84A
accent
#E642B3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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