#3F1572#3F1572

#3F1572 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.146 H 297.9°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#3F1572
RGBrgb(63, 21, 114)
HSLhsl(267, 69%, 26%)
HSVhsv(267, 82%, 45%)
CMYKcmyk(44.7%, 81.6%, 0%, 55.3%)
CIE-LABlab(19.26, 39.70, -45.14)
CIE-LCHlch(19.26, 60.11, 311.33°)
OKLaboklab(32.2% 0.0685 -0.1292)
OKLCHoklch(32.2% 0.146 297.9)
XYZxyz(5.3545, 2.8079, 16.1762)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1572 #487215
analogous
#151972 #3F1572 #6E1572
triadic
#3F1572 #723F15 #15723F
tetradic
#3F1572 #721519 #487215 #15726E
square
#3F1572 #721519 #487215 #15726E
split-complementary
#3F1572 #726E15 #197215
monochromatic
#0E051A #220B3E #3F1572 #5C1FA6 #782AD8

Accessibility & contrast

On white

13.45
#3F1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3F1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1572
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1572#FFFFFF#000000##FFFFFF
##3F15721.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#322F43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3f1572;
/* rgb */ color: rgb(63, 21, 114);
/* oklch */ color: oklch(32.2% 0.146 297.9);
Tailwind
colors: {
  custom: {
    50: '#7a589b',
    500: '#3f1572',
    950: '#000000',
  },
}
SCSS
$custom: #3f1572;
$custom-light: #7a589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1572",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 267.097,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32202,
    "c": 0.14626,
    "h": 297.9
  },
  "luminance": 0.02808
}

Semantic roles & 50–950 ramp

primary
#3F1572
secondary
#77A83B
accent
#EC3C9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F1572

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

Preview Lab → · Contrast checker → · Palette generator →

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