#3F1B82#3F1B82

#3F1B82 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.158 H 291.7°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#3F1B82
RGBrgb(63, 27, 130)
HSLhsl(261, 66%, 31%)
HSVhsv(261, 79%, 51%)
CMYKcmyk(51.5%, 79.2%, 0%, 49%)
CIE-LABlab(21.77, 41.35, -51.23)
CIE-LCHlch(21.77, 65.84, 308.91°)
OKLaboklab(34.43% 0.0586 -0.1471)
OKLCHoklch(34.43% 0.158 291.7)
XYZxyz(6.4700, 3.4521, 21.4402)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B82 #5E821B
analogous
#1B2A82 #3F1B82 #721B82
triadic
#3F1B82 #823F1B #1B823F
tetradic
#3F1B82 #821B2A #5E821B #1B8272
square
#3F1B82 #821B2A #5E821B #1B8272
split-complementary
#3F1B82 #82721B #2A821B
monochromatic
#0E061D #26104F #3F1B82 #5826B5 #7540D7

Accessibility & contrast

On white

12.42
#3F1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3F1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1B82
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B82#FFFFFF#000000##FFFFFF
##3F1B821.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#28384E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1b82;
/* rgb */ color: rgb(63, 27, 130);
/* oklch */ color: oklch(34.4% 0.158 291.7);
Tailwind
colors: {
  custom: {
    50: '#7c5ca7',
    500: '#3f1b82',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b82;
$custom-light: #7c5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b82",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 260.971,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3443,
    "c": 0.15837,
    "h": 291.7
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#3F1B82
secondary
#8EB643
accent
#E93FAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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