#3F1884#3F1884

#3F1884 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.164 H 291.6°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#3F1884
RGBrgb(63, 24, 132)
HSLhsl(262, 69%, 31%)
HSVhsv(262, 82%, 52%)
CMYKcmyk(52.3%, 81.8%, 0%, 48.2%)
CIE-LABlab(21.49, 43.30, -52.96)
CIE-LCHlch(21.49, 68.40, 309.27°)
OKLaboklab(34.29% 0.0603 -0.1521)
OKLCHoklch(34.29% 0.164 291.6)
XYZxyz(6.5402, 3.3757, 22.1323)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1884 #5D8418
analogous
#182784 #3F1884 #751884
triadic
#3F1884 #843F18 #18843F
tetradic
#3F1884 #841827 #5D8418 #188475
square
#3F1884 #841827 #5D8418 #188475
split-complementary
#3F1884 #847518 #278418
monochromatic
#0E051C #260F50 #3F1884 #5821B8 #753BDB

Accessibility & contrast

On white

12.54
#3F1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3F1884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1884
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1884#FFFFFF#000000##FFFFFF
##3F18841.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1884;
/* rgb */ color: rgb(63, 24, 132);
/* oklch */ color: oklch(34.3% 0.164 291.6);
Tailwind
colors: {
  custom: {
    50: '#7c5ba9',
    500: '#3f1884',
    950: '#000000',
  },
}
SCSS
$custom: #3f1884;
$custom-light: #7c5ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1884",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 261.667,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34295,
    "c": 0.16365,
    "h": 291.6
  },
  "luminance": 0.03376
}

Semantic roles & 50–950 ramp

primary
#3F1884
secondary
#8DB840
accent
#EC3CAC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1884

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

Preview Lab → · Contrast checker → · Palette generator →

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