#3F1B7B#3F1B7B

#3F1B7B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.150 H 293.8°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#3F1B7B
RGBrgb(63, 27, 123)
HSLhsl(263, 64%, 29%)
HSVhsv(263, 78%, 48%)
CMYKcmyk(48.8%, 78%, 0%, 51.8%)
CIE-LABlab(21.10, 39.37, -47.90)
CIE-LCHlch(21.10, 62.00, 309.41°)
OKLaboklab(33.75% 0.0606 -0.1374)
OKLCHoklch(33.75% 0.15 293.8)
XYZxyz(6.0160, 3.2705, 19.0493)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B7B #577B1B
analogous
#1B277B #3F1B7B #6F1B7B
triadic
#3F1B7B #7B3F1B #1B7B3F
tetradic
#3F1B7B #7B1B27 #577B1B #1B7B6F
square
#3F1B7B #7B1B27 #577B1B #1B7B6F
split-complementary
#3F1B7B #7B6F1B #277B1B
monochromatic
#0D0619 #251049 #3F1B7B #5926AD #753CD4

Accessibility & contrast

On white

12.69
#3F1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1B7B
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B7B#FFFFFF#000000##FFFFFF
##3F1B7B1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#2D354A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1b7b;
/* rgb */ color: rgb(63, 27, 123);
/* oklch */ color: oklch(33.8% 0.150 293.8);
Tailwind
colors: {
  custom: {
    50: '#7b5ca2',
    500: '#3f1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b7b;
$custom-light: #7b5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b7b",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 262.5,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33752,
    "c": 0.15013,
    "h": 293.8
  },
  "luminance": 0.03271
}

Semantic roles & 50–950 ramp

primary
#3F1B7B
secondary
#86AF43
accent
#E741A9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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