#3F1B87#3F1B87

#3F1B87 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.164 H 290.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#3F1B87
RGBrgb(63, 27, 135)
HSLhsl(260, 67%, 32%)
HSVhsv(260, 80%, 53%)
CMYKcmyk(53.3%, 80%, 0%, 47.1%)
CIE-LABlab(22.27, 42.77, -53.57)
CIE-LCHlch(22.27, 68.55, 308.60°)
OKLaboklab(34.93% 0.057 -0.154)
OKLCHoklch(34.93% 0.164 290.3)
XYZxyz(6.8137, 3.5896, 23.2508)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B87 #63871B
analogous
#1B2D87 #3F1B87 #751B87
triadic
#3F1B87 #873F1B #1B873F
tetradic
#3F1B87 #871B2D #63871B #1B8775
square
#3F1B87 #871B2D #63871B #1B8775
split-complementary
#3F1B87 #87751B #2D871B
monochromatic
#0F0721 #271154 #3F1B87 #5725BA #7543D9

Accessibility & contrast

On white

12.22
#3F1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3F1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1B87
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B87#FFFFFF#000000##FFFFFF
##3F1B871.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#253A51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f1b87;
/* rgb */ color: rgb(63, 27, 135);
/* oklch */ color: oklch(34.9% 0.164 290.3);
Tailwind
colors: {
  custom: {
    50: '#7d5cab',
    500: '#3f1b87',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b87;
$custom-light: #7d5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b87",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 260,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34926,
    "c": 0.16419,
    "h": 290.3
  },
  "luminance": 0.0359
}

Semantic roles & 50–950 ramp

primary
#3F1B87
secondary
#93BA44
accent
#EA3EB0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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