#3F1F91#3F1F91

#3F1F91 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.172 H 287.2°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#3F1F91
RGBrgb(63, 31, 145)
HSLhsl(257, 65%, 35%)
HSVhsv(257, 79%, 57%)
CMYKcmyk(56.6%, 78.6%, 0%, 43.1%)
CIE-LABlab(23.94, 43.73, -57.05)
CIE-LCHlch(23.94, 71.89, 307.47°)
OKLaboklab(36.4% 0.051 -0.1642)
OKLCHoklch(36.4% 0.172 287.2)
XYZxyz(7.6492, 4.0807, 27.1672)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F91 #71911F
analogous
#1F3891 #3F1F91 #781F91
triadic
#3F1F91 #913F1F #1F913F
tetradic
#3F1F91 #911F38 #71911F #1F9178
square
#3F1F91 #911F38 #71911F #1F9178
split-complementary
#3F1F91 #91781F #38911F
monochromatic
#13092C #29145F #3F1F91 #552AC3 #7751DA

Accessibility & contrast

On white

11.56
#3F1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3F1F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F91
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F91#FFFFFF#000000##FFFFFF
##3F1F911.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00368F
Tritanopia (blue-blind)
#1B4057
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f1f91;
/* rgb */ color: rgb(63, 31, 145);
/* oklch */ color: oklch(36.4% 0.172 287.2);
Tailwind
colors: {
  custom: {
    50: '#7e5fb2',
    500: '#3f1f91',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f91;
$custom-light: #7e5fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f91",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 256.842,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36396,
    "c": 0.17194,
    "h": 287.2
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#3F1F91
secondary
#9EBD4F
accent
#E840B9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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