#3F1574#3F1574

#3F1574 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.149 H 297.2°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#3F1574
RGBrgb(63, 21, 116)
HSLhsl(267, 69%, 27%)
HSVhsv(267, 82%, 45%)
CMYKcmyk(45.7%, 81.9%, 0%, 54.5%)
CIE-LABlab(19.45, 40.24, -46.11)
CIE-LCHlch(19.45, 61.20, 311.11°)
OKLaboklab(32.39% 0.0679 -0.1321)
OKLCHoklch(32.39% 0.149 297.2)
XYZxyz(5.4696, 2.8539, 16.7823)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1574 #4A7415
analogous
#151B74 #3F1574 #6F1574
triadic
#3F1574 #743F15 #15743F
tetradic
#3F1574 #74151B #4A7415 #15746F
square
#3F1574 #74151B #4A7415 #15746F
split-complementary
#3F1574 #746F15 #1B7415
monochromatic
#0E051A #230C40 #3F1574 #5B1EA8 #782BD9

Accessibility & contrast

On white

13.37
#3F1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3F1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1574
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1574#FFFFFF#000000##FFFFFF
##3F15741.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#312F44
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3f1574;
/* rgb */ color: rgb(63, 21, 116);
/* oklch */ color: oklch(32.4% 0.149 297.2);
Tailwind
colors: {
  custom: {
    50: '#7a589d',
    500: '#3f1574',
    950: '#000000',
  },
}
SCSS
$custom: #3f1574;
$custom-light: #7a589d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1574",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 266.526,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32394,
    "c": 0.14851,
    "h": 297.2
  },
  "luminance": 0.02854
}

Semantic roles & 50–950 ramp

primary
#3F1574
secondary
#79AA3B
accent
#EC3C9E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1574

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

Preview Lab → · Contrast checker → · Palette generator →

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