#3F1C7A#3F1C7A

#3F1C7A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.148 H 293.9°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#3F1C7A
RGBrgb(63, 28, 122)
HSLhsl(262, 63%, 29%)
HSVhsv(262, 77%, 48%)
CMYKcmyk(48.4%, 77%, 0%, 52.2%)
CIE-LABlab(21.18, 38.58, -47.13)
CIE-LCHlch(21.18, 60.91, 309.31°)
OKLaboklab(33.78% 0.06 -0.1351)
OKLCHoklch(33.78% 0.148 293.9)
XYZxyz(5.9770, 3.2922, 18.7291)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1C7A #577A1C
analogous
#1C287A #3F1C7A #6E1C7A
triadic
#3F1C7A #7A3F1C #1C7A3F
tetradic
#3F1C7A #7A1C28 #577A1C #1C7A6E
square
#3F1C7A #7A1C28 #577A1C #1C7A6E
split-complementary
#3F1C7A #7A6E1C #287A1C
monochromatic
#0D0619 #251148 #3F1C7A #5927AC #753ED3

Accessibility & contrast

On white

12.66
#3F1C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3F1C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1C7A
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1C7A#FFFFFF#000000##FFFFFF
##3F1C7A1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#2D3549
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1c7a;
/* rgb */ color: rgb(63, 28, 122);
/* oklch */ color: oklch(33.8% 0.148 293.9);
Tailwind
colors: {
  custom: {
    50: '#7b5ca1',
    500: '#3f1c7a',
    950: '#000000',
  },
}
SCSS
$custom: #3f1c7a;
$custom-light: #7b5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1c7a",
  "rgb": {
    "r": 63,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 262.34,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3378,
    "c": 0.14782,
    "h": 293.9
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#3F1C7A
secondary
#86AE44
accent
#E642A9
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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