#3F1C8B#3F1C8B

#3F1C8B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.168 H 289.1°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#3F1C8B
RGBrgb(63, 28, 139)
HSLhsl(259, 66%, 33%)
HSVhsv(259, 80%, 55%)
CMYKcmyk(54.7%, 79.9%, 0%, 45.5%)
CIE-LABlab(22.83, 43.44, -55.14)
CIE-LCHlch(22.83, 70.20, 308.23°)
OKLaboklab(35.44% 0.055 -0.1586)
OKLCHoklch(35.44% 0.168 289.1)
XYZxyz(7.1240, 3.7510, 24.7697)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1C8B #688B1C
analogous
#1C308B #3F1C8B #761C8B
triadic
#3F1C8B #8B3F1C #1C8B3F
tetradic
#3F1C8B #8B1C30 #688B1C #1C8B76
square
#3F1C8B #8B1C30 #688B1C #1C8B76
split-complementary
#3F1C8B #8B761C #308B1C
monochromatic
#110725 #281258 #3F1C8B #5626BE #7647DA

Accessibility & contrast

On white

12.00
#3F1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3F1C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1C8B
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1C8B#FFFFFF#000000##FFFFFF
##3F1C8B1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#213C53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f1c8b;
/* rgb */ color: rgb(63, 28, 139);
/* oklch */ color: oklch(35.4% 0.168 289.1);
Tailwind
colors: {
  custom: {
    50: '#7d5dae',
    500: '#3f1c8b',
    950: '#000000',
  },
}
SCSS
$custom: #3f1c8b;
$custom-light: #7d5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1c8b",
  "rgb": {
    "r": 63,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 258.919,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35442,
    "c": 0.16786,
    "h": 289.1
  },
  "luminance": 0.03751
}

Semantic roles & 50–950 ramp

primary
#3F1C8B
secondary
#97BC47
accent
#E93EB3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3F1C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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