#3F1FA0#3F1FA0

#3F1FA0 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.189 H 284.2°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#3F1FA0
RGBrgb(63, 31, 160)
HSLhsl(255, 68%, 37%)
HSVhsv(255, 81%, 63%)
CMYKcmyk(60.6%, 80.6%, 0%, 37.3%)
CIE-LABlab(25.49, 48.09, -63.71)
CIE-LCHlch(25.49, 79.82, 307.04°)
OKLaboklab(37.94% 0.0463 -0.1837)
OKLCHoklch(37.94% 0.189 284.2)
XYZxyz(8.8831, 4.5742, 33.6657)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1FA0 #80A01F
analogous
#1F3FA0 #3F1FA0 #801FA0
triadic
#3F1FA0 #A03F1F #1FA03F
tetradic
#3F1FA0 #A01F3F #80A01F #1FA080
square
#3F1FA0 #A01F3F #80A01F #1FA080
split-complementary
#3F1FA0 #A0801F #3FA01F
monochromatic
#170B39 #2B156D #3F1FA0 #5329D3 #7B5ADF

Accessibility & contrast

On white

10.97
#3F1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3F1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1FA0
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1FA0#FFFFFF#000000##FFFFFF
##3F1FA01.0010.971.9210.97
#FFFFFF10.971.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#00389E
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f1fa0;
/* rgb */ color: rgb(63, 31, 160);
/* oklch */ color: oklch(37.9% 0.189 284.2);
Tailwind
colors: {
  custom: {
    50: '#8160bd',
    500: '#3f1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #3f1fa0;
$custom-light: #8160bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1fa0",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 254.884,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37939,
    "c": 0.18941,
    "h": 284.2
  },
  "luminance": 0.04575
}

Semantic roles & 50–950 ramp

primary
#3F1FA0
secondary
#A8C358
accent
#EA3DBF
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3F1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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