#3F1C74#3F1C74

#3F1C74 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.141 H 295.9°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#3F1C74
RGBrgb(63, 28, 116)
HSLhsl(264, 61%, 28%)
HSVhsv(264, 76%, 45%)
CMYKcmyk(45.7%, 75.9%, 0%, 54.5%)
CIE-LABlab(20.63, 36.88, -44.19)
CIE-LCHlch(20.63, 57.55, 309.85°)
OKLaboklab(33.22% 0.0615 -0.1265)
OKLCHoklch(33.22% 0.141 295.9)
XYZxyz(5.6167, 3.1481, 16.8313)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1C74 #51741C
analogous
#1C2574 #3F1C74 #6B1C74
triadic
#3F1C74 #743F1C #1C743F
tetradic
#3F1C74 #741C25 #51741C #1C746B
square
#3F1C74 #741C25 #51741C #1C746B
split-complementary
#3F1C74 #746B1C #25741C
monochromatic
#0D0619 #241043 #3F1C74 #5A28A5 #763BD0

Accessibility & contrast

On white

12.89
#3F1C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3F1C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1C74
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1C74#FFFFFF#000000##FFFFFF
##3F1C741.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#313346
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f1c74;
/* rgb */ color: rgb(63, 28, 116);
/* oklch */ color: oklch(33.2% 0.141 295.9);
Tailwind
colors: {
  custom: {
    50: '#7a5c9d',
    500: '#3f1c74',
    950: '#000000',
  },
}
SCSS
$custom: #3f1c74;
$custom-light: #7a5c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1c74",
  "rgb": {
    "r": 63,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 263.864,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33222,
    "c": 0.14061,
    "h": 295.9
  },
  "luminance": 0.03148
}

Semantic roles & 50–950 ramp

primary
#3F1C74
secondary
#80A843
accent
#E444A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1C74

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

Preview Lab → · Contrast checker → · Palette generator →

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