#3F1C82#3F1C82

#3F1C82 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.157 H 291.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#3F1C82
RGBrgb(63, 28, 130)
HSLhsl(261, 65%, 31%)
HSVhsv(261, 78%, 51%)
CMYKcmyk(51.5%, 78.5%, 0%, 49%)
CIE-LABlab(21.94, 40.87, -50.96)
CIE-LCHlch(21.94, 65.32, 308.73°)
OKLaboklab(34.55% 0.0577 -0.1463)
OKLCHoklch(34.55% 0.157 291.5)
XYZxyz(6.4933, 3.4987, 21.4480)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1C82 #5F821C
analogous
#1C2C82 #3F1C82 #721C82
triadic
#3F1C82 #823F1C #1C823F
tetradic
#3F1C82 #821C2C #5F821C #1C8272
square
#3F1C82 #821C2C #5F821C #1C8272
split-complementary
#3F1C82 #82721C #2C821C
monochromatic
#0E061D #271150 #3F1C82 #5727B4 #7542D6

Accessibility & contrast

On white

12.35
#3F1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3F1C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1C82
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1C82#FFFFFF#000000##FFFFFF
##3F1C821.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1c82;
/* rgb */ color: rgb(63, 28, 130);
/* oklch */ color: oklch(34.5% 0.157 291.5);
Tailwind
colors: {
  custom: {
    50: '#7c5ca7',
    500: '#3f1c82',
    950: '#000000',
  },
}
SCSS
$custom: #3f1c82;
$custom-light: #7c5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1c82",
  "rgb": {
    "r": 63,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 260.588,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34549,
    "c": 0.15731,
    "h": 291.5
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#3F1C82
secondary
#8FB544
accent
#E840AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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