#3F1678#3F1678

#3F1678 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.152 H 295.6°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#3F1678
RGBrgb(63, 22, 120)
HSLhsl(265, 69%, 28%)
HSVhsv(265, 82%, 47%)
CMYKcmyk(47.5%, 81.7%, 0%, 52.9%)
CIE-LABlab(19.99, 40.88, -47.80)
CIE-LCHlch(19.99, 62.90, 310.54°)
OKLaboklab(32.89% 0.0658 -0.137)
OKLCHoklch(32.89% 0.152 295.6)
XYZxyz(5.7261, 2.9865, 18.0404)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1678 #4F7816
analogous
#161E78 #3F1678 #701678
triadic
#3F1678 #783F16 #16783F
tetradic
#3F1678 #78161E #4F7816 #167870
square
#3F1678 #78161E #4F7816 #167870
split-complementary
#3F1678 #787016 #1E7816
monochromatic
#0E051A #240D44 #3F1678 #5A1FAC #762FD9

Accessibility & contrast

On white

13.15
#3F1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3F1678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1678
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1678#FFFFFF#000000##FFFFFF
##3F16781.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#2F3147
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f1678;
/* rgb */ color: rgb(63, 22, 120);
/* oklch */ color: oklch(32.9% 0.152 295.6);
Tailwind
colors: {
  custom: {
    50: '#7b59a0',
    500: '#3f1678',
    950: '#000000',
  },
}
SCSS
$custom: #3f1678;
$custom-light: #7b59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1678",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 265.102,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32889,
    "c": 0.152,
    "h": 295.6
  },
  "luminance": 0.02987
}

Semantic roles & 50–950 ramp

primary
#3F1678
secondary
#7EAD3C
accent
#EC3CA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3F1678

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

Preview Lab → · Contrast checker → · Palette generator →

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