#3F1A7B#3F1A7B

#3F1A7B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.151 H 294.0°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#3F1A7B
RGBrgb(63, 26, 123)
HSLhsl(263, 65%, 29%)
HSVhsv(263, 79%, 48%)
CMYKcmyk(48.8%, 78.9%, 0%, 51.8%)
CIE-LABlab(20.92, 39.86, -48.18)
CIE-LCHlch(20.92, 62.53, 309.60°)
OKLaboklab(33.63% 0.0615 -0.1382)
OKLCHoklch(33.63% 0.151 294)
XYZxyz(5.9935, 3.2254, 19.0418)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A7B #567B1A
analogous
#1A257B #3F1A7B #701A7B
triadic
#3F1A7B #7B3F1A #1A7B3F
tetradic
#3F1A7B #7B1A25 #567B1A #1A7B70
square
#3F1A7B #7B1A25 #567B1A #1A7B70
split-complementary
#3F1A7B #7B701A #257B1A
monochromatic
#0D0519 #250F48 #3F1A7B #5925AE #753AD5

Accessibility & contrast

On white

12.76
#3F1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3F1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1A7B
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A7B#FFFFFF#000000##FFFFFF
##3F1A7B1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#2D344A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f1a7b;
/* rgb */ color: rgb(63, 26, 123);
/* oklch */ color: oklch(33.6% 0.151 294.0);
Tailwind
colors: {
  custom: {
    50: '#7b5ba2',
    500: '#3f1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a7b;
$custom-light: #7b5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a7b",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 262.887,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33631,
    "c": 0.15124,
    "h": 294
  },
  "luminance": 0.03226
}

Semantic roles & 50–950 ramp

primary
#3F1A7B
secondary
#85AF42
accent
#E840A8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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