#3F2571#3F2571

#3F2571 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.3% C 0.125 H 294.7°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#3F2571
RGBrgb(63, 37, 113)
HSLhsl(261, 51%, 29%)
HSVhsv(261, 67%, 44%)
CMYKcmyk(44.2%, 67.3%, 0%, 55.7%)
CIE-LABlab(22.20, 30.94, -39.69)
CIE-LCHlch(22.20, 50.33, 307.94°)
OKLaboklab(34.27% 0.052 -0.1133)
OKLCHoklch(34.27% 0.125 294.7)
XYZxyz(5.6913, 3.5720, 16.0092)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2571 #577125
analogous
#253171 #3F2571 #652571
triadic
#3F2571 #713F25 #25713F
tetradic
#3F2571 #712531 #577125 #257165
square
#3F2571 #712531 #577125 #257165
split-complementary
#3F2571 #716525 #317125
monochromatic
#0D0817 #251643 #3F2571 #59349F #754CC4

Accessibility & contrast

On white

12.25
#3F2571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3F2571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2571
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2571#FFFFFF#000000##FFFFFF
##3F25711.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#323747
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f2571;
/* rgb */ color: rgb(63, 37, 113);
/* oklch */ color: oklch(34.3% 0.125 294.7);
Tailwind
colors: {
  custom: {
    50: '#79619a',
    500: '#3f2571',
    950: '#000000',
  },
}
SCSS
$custom: #3f2571;
$custom-light: #79619a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2571",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 260.526,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34269,
    "c": 0.12467,
    "h": 294.7
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#3F2571
secondary
#86A44E
accent
#DA4EAA
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3F2571

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

Preview Lab → · Contrast checker → · Palette generator →

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