#3F1878#3F1878

#3F1878 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.150 H 295.3°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#3F1878
RGBrgb(63, 24, 120)
HSLhsl(264, 67%, 28%)
HSVhsv(264, 80%, 47%)
CMYKcmyk(47.5%, 80%, 0%, 52.9%)
CIE-LABlab(20.31, 39.97, -47.28)
CIE-LCHlch(20.31, 61.91, 310.21°)
OKLaboklab(33.11% 0.0641 -0.1355)
OKLCHoklch(33.11% 0.15 295.3)
XYZxyz(5.7658, 3.0659, 18.0537)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1878 #517818
analogous
#182178 #3F1878 #6F1878
triadic
#3F1878 #783F18 #18783F
tetradic
#3F1878 #781821 #517818 #18786F
square
#3F1878 #781821 #517818 #18786F
split-complementary
#3F1878 #786F18 #217818
monochromatic
#0D051A #240E45 #3F1878 #5A22AB #7634D6

Accessibility & contrast

On white

13.02
#3F1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3F1878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1878
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1878#FFFFFF#000000##FFFFFF
##3F18781.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#2F3247
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f1878;
/* rgb */ color: rgb(63, 24, 120);
/* oklch */ color: oklch(33.1% 0.150 295.3);
Tailwind
colors: {
  custom: {
    50: '#7b5aa0',
    500: '#3f1878',
    950: '#000000',
  },
}
SCSS
$custom: #3f1878;
$custom-light: #7b5aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1878",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 264.375,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3311,
    "c": 0.14991,
    "h": 295.3
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#3F1878
secondary
#80AD3F
accent
#EA3EA4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3F1878

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

Preview Lab → · Contrast checker → · Palette generator →

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