#3F1D8B#3F1D8B

#3F1D8B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.167 H 289.0°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#3F1D8B
RGBrgb(63, 29, 139)
HSLhsl(259, 65%, 33%)
HSVhsv(259, 79%, 55%)
CMYKcmyk(54.7%, 79.1%, 0%, 45.5%)
CIE-LABlab(23.00, 42.96, -54.87)
CIE-LCHlch(23.00, 69.69, 308.06°)
OKLaboklab(35.56% 0.0543 -0.1578)
OKLCHoklch(35.56% 0.167 289)
XYZxyz(7.1481, 3.7992, 24.7778)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1D8B #698B1D
analogous
#1D328B #3F1D8B #761D8B
triadic
#3F1D8B #8B3F1D #1D8B3F
tetradic
#3F1D8B #8B1D32 #698B1D #1D8B76
square
#3F1D8B #8B1D32 #698B1D #1D8B76
split-complementary
#3F1D8B #8B761D #328B1D
monochromatic
#110826 #281258 #3F1D8B #5628BE #7649D9

Accessibility & contrast

On white

11.93
#3F1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3F1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1D8B
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1D8B#FFFFFF#000000##FFFFFF
##3F1D8B1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1d8b;
/* rgb */ color: rgb(63, 29, 139);
/* oklch */ color: oklch(35.6% 0.167 289.0);
Tailwind
colors: {
  custom: {
    50: '#7d5dae',
    500: '#3f1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #3f1d8b;
$custom-light: #7d5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1d8b",
  "rgb": {
    "r": 63,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 258.545,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35557,
    "c": 0.16687,
    "h": 289
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#3F1D8B
secondary
#98BB49
accent
#E83FB4
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3F1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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