#3F1783#3F1783

#3F1783 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.163 H 292.0°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#3F1783
RGBrgb(63, 23, 131)
HSLhsl(262, 70%, 30%)
HSVhsv(262, 82%, 51%)
CMYKcmyk(51.9%, 82.4%, 0%, 48.6%)
CIE-LABlab(21.24, 43.46, -52.74)
CIE-LCHlch(21.24, 68.34, 309.49°)
OKLaboklab(34.09% 0.0613 -0.1515)
OKLCHoklch(34.09% 0.163 292)
XYZxyz(6.4519, 3.3080, 21.7669)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1783 #5B8317
analogous
#172583 #3F1783 #751783
triadic
#3F1783 #833F17 #17833F
tetradic
#3F1783 #831725 #5B8317 #178375
square
#3F1783 #831725 #5B8317 #178375
split-complementary
#3F1783 #837517 #258317
monochromatic
#0D051B #260E4F #3F1783 #5820B7 #7538DC

Accessibility & contrast

On white

12.64
#3F1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3F1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1783
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1783#FFFFFF#000000##FFFFFF
##3F17831.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#28374D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1783;
/* rgb */ color: rgb(63, 23, 131);
/* oklch */ color: oklch(34.1% 0.163 292.0);
Tailwind
colors: {
  custom: {
    50: '#7c5aa8',
    500: '#3f1783',
    950: '#000000',
  },
}
SCSS
$custom: #3f1783;
$custom-light: #7c5aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1783",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 262.222,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34089,
    "c": 0.16345,
    "h": 292
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#3F1783
secondary
#8BB73F
accent
#ED3BAB
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1783

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

Preview Lab → · Contrast checker → · Palette generator →

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