#3F1B8D#3F1B8D

#3F1B8D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.171 H 288.8°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#3F1B8D
RGBrgb(63, 27, 141)
HSLhsl(259, 68%, 33%)
HSVhsv(259, 81%, 55%)
CMYKcmyk(55.3%, 80.9%, 0%, 44.7%)
CIE-LABlab(22.87, 44.47, -56.32)
CIE-LCHlch(22.87, 71.76, 308.30°)
OKLaboklab(35.53% 0.0551 -0.162)
OKLCHoklch(35.53% 0.171 288.8)
XYZxyz(7.2481, 3.7634, 25.5386)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B8D #698D1B
analogous
#1B308D #3F1B8D #781B8D
triadic
#3F1B8D #8D3F1B #1B8D3F
tetradic
#3F1B8D #8D1B30 #698D1B #1B8D78
square
#3F1B8D #8D1B30 #698D1B #1B8D78
split-complementary
#3F1B8D #8D781B #308D1B
monochromatic
#110726 #28115A #3F1B8D #5625C0 #7647DC

Accessibility & contrast

On white

11.98
#3F1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1B8D
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B8D#FFFFFF#000000##FFFFFF
##3F1B8D1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#1F3C54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f1b8d;
/* rgb */ color: rgb(63, 27, 141);
/* oklch */ color: oklch(35.5% 0.171 288.8);
Tailwind
colors: {
  custom: {
    50: '#7e5daf',
    500: '#3f1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b8d;
$custom-light: #7e5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b8d",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 258.947,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35532,
    "c": 0.17113,
    "h": 288.8
  },
  "luminance": 0.03764
}

Semantic roles & 50–950 ramp

primary
#3F1B8D
secondary
#98BD46
accent
#EB3DB4
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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