#3F2178#3F2178

#3F2178 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.139 H 293.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#3F2178
RGBrgb(63, 33, 120)
HSLhsl(261, 57%, 30%)
HSVhsv(261, 73%, 47%)
CMYKcmyk(47.5%, 72.5%, 0%, 52.9%)
CIE-LABlab(21.95, 35.34, -44.60)
CIE-LCHlch(21.95, 56.90, 308.39°)
OKLaboklab(34.27% 0.0555 -0.1277)
OKLCHoklch(34.27% 0.139 293.5)
XYZxyz(5.9830, 3.5004, 18.1261)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2178 #5A7821
analogous
#212E78 #3F2178 #6B2178
triadic
#3F2178 #783F21 #21783F
tetradic
#3F2178 #78212E #5A7821 #21786B
square
#3F2178 #78212E #5A7821 #21786B
split-complementary
#3F2178 #786B21 #2E7821
monochromatic
#0D0718 #261448 #3F2178 #582EA8 #7547CC

Accessibility & contrast

On white

12.35
#3F2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3F2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2178
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2178#FFFFFF#000000##FFFFFF
##3F21781.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#2E374A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f2178;
/* rgb */ color: rgb(63, 33, 120);
/* oklch */ color: oklch(34.3% 0.139 293.5);
Tailwind
colors: {
  custom: {
    50: '#7a5fa0',
    500: '#3f2178',
    950: '#000000',
  },
}
SCSS
$custom: #3f2178;
$custom-light: #7a5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2178",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 260.69,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.34268,
    "c": 0.13924,
    "h": 293.5
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

primary
#3F2178
secondary
#8AAB4A
accent
#E048AC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050F
muted
#7C797E

Preview Lab

Preview with #3F2178

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

Preview Lab → · Contrast checker → · Palette generator →

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