#3F2176#3F2176

#3F2176 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.137 H 294.1°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#3F2176
RGBrgb(63, 33, 118)
HSLhsl(261, 56%, 30%)
HSVhsv(261, 72%, 46%)
CMYKcmyk(46.6%, 72%, 0%, 53.7%)
CIE-LABlab(21.77, 34.75, -43.60)
CIE-LCHlch(21.77, 55.76, 308.55°)
OKLaboklab(34.09% 0.0559 -0.1248)
OKLCHoklch(34.09% 0.137 294.1)
XYZxyz(5.8629, 3.4523, 17.4935)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2176 #587621
analogous
#212E76 #3F2176 #692176
triadic
#3F2176 #763F21 #21763F
tetradic
#3F2176 #76212E #587621 #217669
square
#3F2176 #76212E #587621 #217669
split-complementary
#3F2176 #766921 #2E7621
monochromatic
#0D0718 #251446 #3F2176 #592EA6 #7546CB

Accessibility & contrast

On white

12.42
#3F2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3F2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2176
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2176#FFFFFF#000000##FFFFFF
##3F21761.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#003374
Tritanopia (blue-blind)
#2F3649
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f2176;
/* rgb */ color: rgb(63, 33, 118);
/* oklch */ color: oklch(34.1% 0.137 294.1);
Tailwind
colors: {
  custom: {
    50: '#7a5f9e',
    500: '#3f2176',
    950: '#000000',
  },
}
SCSS
$custom: #3f2176;
$custom-light: #7a5f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2176",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 261.176,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34089,
    "c": 0.13671,
    "h": 294.1
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#3F2176
secondary
#87A94A
accent
#E048AA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #3F2176

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

Preview Lab → · Contrast checker → · Palette generator →

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