#3F1784#3F1784

#3F1784 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.165 H 291.8°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#3F1784
RGBrgb(63, 23, 132)
HSLhsl(262, 70%, 30%)
HSVhsv(262, 83%, 52%)
CMYKcmyk(52.3%, 82.6%, 0%, 48.2%)
CIE-LABlab(21.34, 43.73, -53.20)
CIE-LCHlch(21.34, 68.87, 309.42°)
OKLaboklab(34.19% 0.061 -0.1529)
OKLCHoklch(34.19% 0.165 291.8)
XYZxyz(6.5200, 3.3352, 22.1255)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1784 #5C8417
analogous
#172684 #3F1784 #751784
triadic
#3F1784 #843F17 #17843F
tetradic
#3F1784 #841726 #5C8417 #178475
square
#3F1784 #841726 #5C8417 #178475
split-complementary
#3F1784 #847517 #268417
monochromatic
#0D051C #260E50 #3F1784 #5820B8 #7539DC

Accessibility & contrast

On white

12.60
#3F1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3F1784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1784
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1784#FFFFFF#000000##FFFFFF
##3F17841.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#27374E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1784;
/* rgb */ color: rgb(63, 23, 132);
/* oklch */ color: oklch(34.2% 0.165 291.8);
Tailwind
colors: {
  custom: {
    50: '#7c5aa9',
    500: '#3f1784',
    950: '#000000',
  },
}
SCSS
$custom: #3f1784;
$custom-light: #7c5aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1784",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 262.018,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34191,
    "c": 0.16458,
    "h": 291.8
  },
  "luminance": 0.03335
}

Semantic roles & 50–950 ramp

primary
#3F1784
secondary
#8CB83F
accent
#ED3BAC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1784

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

Preview Lab → · Contrast checker → · Palette generator →

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