#3F1B7A#3F1B7A

#3F1B7A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.149 H 294.1°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#3F1B7A
RGBrgb(63, 27, 122)
HSLhsl(263, 64%, 29%)
HSVhsv(263, 78%, 48%)
CMYKcmyk(48.4%, 77.9%, 0%, 52.2%)
CIE-LABlab(21.00, 39.08, -47.42)
CIE-LCHlch(21.00, 61.45, 309.50°)
OKLaboklab(33.66% 0.0609 -0.1359)
OKLCHoklch(33.66% 0.149 294.1)
XYZxyz(5.9537, 3.2456, 18.7213)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B7A #567A1B
analogous
#1B277A #3F1B7A #6F1B7A
triadic
#3F1B7A #7A3F1B #1B7A3F
tetradic
#3F1B7A #7A1B27 #567A1B #1B7A6F
square
#3F1B7A #7A1B27 #567A1B #1B7A6F
split-complementary
#3F1B7A #7A6F1B #277A1B
monochromatic
#0D0619 #251048 #3F1B7A #5926AC #753CD4

Accessibility & contrast

On white

12.73
#3F1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1B7A
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B7A#FFFFFF#000000##FFFFFF
##3F1B7A1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#2D3549
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f1b7a;
/* rgb */ color: rgb(63, 27, 122);
/* oklch */ color: oklch(33.7% 0.149 294.1);
Tailwind
colors: {
  custom: {
    50: '#7b5ba1',
    500: '#3f1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b7a;
$custom-light: #7b5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b7a",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 262.737,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33656,
    "c": 0.14896,
    "h": 294.1
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#3F1B7A
secondary
#85AE43
accent
#E741A8
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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