#3F1A71#3F1A71

#3F1A71 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.139 H 297.4°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#3F1A71
RGBrgb(63, 26, 113)
HSLhsl(266, 63%, 27%)
HSVhsv(266, 77%, 44%)
CMYKcmyk(44.2%, 77%, 0%, 55.7%)
CIE-LABlab(19.99, 37.06, -43.29)
CIE-LCHlch(19.99, 56.98, 310.57°)
OKLaboklab(32.69% 0.0642 -0.1238)
OKLCHoklch(32.69% 0.139 297.4)
XYZxyz(5.3992, 2.9877, 15.9118)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A71 #4C711A
analogous
#1A2171 #3F1A71 #6B1A71
triadic
#3F1A71 #713F1A #1A713F
tetradic
#3F1A71 #711A21 #4C711A #1A716B
square
#3F1A71 #711A21 #4C711A #1A716B
split-complementary
#3F1A71 #716B1A #21711A
monochromatic
#0E0619 #230F3F #3F1A71 #5B25A3 #7735D0

Accessibility & contrast

On white

13.14
#3F1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3F1A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1A71
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A71#FFFFFF#000000##FFFFFF
##3F1A711.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#323044
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f1a71;
/* rgb */ color: rgb(63, 26, 113);
/* oklch */ color: oklch(32.7% 0.139 297.4);
Tailwind
colors: {
  custom: {
    50: '#795a9b',
    500: '#3f1a71',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a71;
$custom-light: #795a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a71",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 265.517,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3269,
    "c": 0.13946,
    "h": 297.4
  },
  "luminance": 0.02988
}

Semantic roles & 50–950 ramp

primary
#3F1A71
secondary
#7BA641
accent
#E642A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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