#3F1B96#3F1B96

#3F1B96 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.181 H 286.7°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#3F1B96
RGBrgb(63, 27, 150)
HSLhsl(258, 69%, 35%)
HSVhsv(258, 82%, 59%)
CMYKcmyk(58%, 82%, 0%, 41.2%)
CIE-LABlab(23.81, 47.02, -60.35)
CIE-LCHlch(23.81, 76.51, 307.93°)
OKLaboklab(36.46% 0.0521 -0.1738)
OKLCHoklch(36.46% 0.181 286.7)
XYZxyz(7.9452, 4.0422, 29.2098)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B96 #72961B
analogous
#1B3496 #3F1B96 #7D1B96
triadic
#3F1B96 #963F1B #1B963F
tetradic
#3F1B96 #961B34 #72961B #1B967D
square
#3F1B96 #961B34 #72961B #1B967D
split-complementary
#3F1B96 #967D1B #34961B
monochromatic
#13082E #291262 #3F1B96 #5524CA #774DDF

Accessibility & contrast

On white

11.61
#3F1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3F1B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1B96
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B96#FFFFFF#000000##FFFFFF
##3F1B961.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#144059
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f1b96;
/* rgb */ color: rgb(63, 27, 150);
/* oklch */ color: oklch(36.5% 0.181 286.7);
Tailwind
colors: {
  custom: {
    50: '#7f5db6',
    500: '#3f1b96',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b96;
$custom-light: #7f5db6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b96",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 257.561,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36463,
    "c": 0.18143,
    "h": 286.7
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#3F1B96
secondary
#9FC14C
accent
#EC3BB9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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