#3F1B94#3F1B94

#3F1B94 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.179 H 287.1°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#3F1B94
RGBrgb(63, 27, 148)
HSLhsl(258, 69%, 34%)
HSVhsv(258, 82%, 58%)
CMYKcmyk(57.4%, 81.8%, 0%, 42%)
CIE-LABlab(23.60, 46.46, -59.46)
CIE-LCHlch(23.60, 75.46, 308.00°)
OKLaboklab(36.25% 0.0528 -0.1712)
OKLCHoklch(36.25% 0.179 287.1)
XYZxyz(7.7855, 3.9783, 28.3689)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B94 #70941B
analogous
#1B3494 #3F1B94 #7C1B94
triadic
#3F1B94 #943F1B #1B943F
tetradic
#3F1B94 #941B34 #70941B #1B947C
square
#3F1B94 #941B34 #70941B #1B947C
split-complementary
#3F1B94 #947C1B #34941B
monochromatic
#13082C #291260 #3F1B94 #5524C8 #774BDE

Accessibility & contrast

On white

11.69
#3F1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3F1B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1B94
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B94#FFFFFF#000000##FFFFFF
##3F1B941.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003592
Tritanopia (blue-blind)
#173F58
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f1b94;
/* rgb */ color: rgb(63, 27, 148);
/* oklch */ color: oklch(36.3% 0.179 287.1);
Tailwind
colors: {
  custom: {
    50: '#7f5db5',
    500: '#3f1b94',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b94;
$custom-light: #7f5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b94",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 257.851,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36254,
    "c": 0.17915,
    "h": 287.1
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#3F1B94
secondary
#9DC04B
accent
#EC3CB8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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