#3F1B80#3F1B80

#3F1B80 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.156 H 292.3°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#3F1B80
RGBrgb(63, 27, 128)
HSLhsl(261, 65%, 30%)
HSVhsv(261, 79%, 50%)
CMYKcmyk(50.8%, 78.9%, 0%, 49.8%)
CIE-LABlab(21.58, 40.78, -50.29)
CIE-LCHlch(21.58, 64.75, 309.04°)
OKLaboklab(34.23% 0.0592 -0.1444)
OKLCHoklch(34.23% 0.156 292.3)
XYZxyz(6.3370, 3.3989, 20.7400)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B80 #5C801B
analogous
#1B2A80 #3F1B80 #711B80
triadic
#3F1B80 #803F1B #1B803F
tetradic
#3F1B80 #801B2A #5C801B #1B8071
square
#3F1B80 #801B2A #5C801B #1B8071
split-complementary
#3F1B80 #80711B #2A801B
monochromatic
#0D061B #26104D #3F1B80 #5826B3 #753FD6

Accessibility & contrast

On white

12.50
#3F1B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1B80
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B80#FFFFFF#000000##FFFFFF
##3F1B801.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#2A374D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1b80;
/* rgb */ color: rgb(63, 27, 128);
/* oklch */ color: oklch(34.2% 0.156 292.3);
Tailwind
colors: {
  custom: {
    50: '#7c5ca6',
    500: '#3f1b80',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b80;
$custom-light: #7c5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b80",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 261.386,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34234,
    "c": 0.15602,
    "h": 292.3
  },
  "luminance": 0.03399
}

Semantic roles & 50–950 ramp

primary
#3F1B80
secondary
#8CB443
accent
#E840AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1B80

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

Preview Lab → · Contrast checker → · Palette generator →

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