#3F1B71#3F1B71

#3F1B71 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.138 H 297.2°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#3F1B71
RGBrgb(63, 27, 113)
HSLhsl(265, 61%, 27%)
HSVhsv(265, 76%, 44%)
CMYKcmyk(44.2%, 76.1%, 0%, 55.7%)
CIE-LABlab(20.17, 36.55, -42.99)
CIE-LCHlch(20.17, 56.43, 310.37°)
OKLaboklab(32.82% 0.0632 -0.123)
OKLCHoklch(32.82% 0.138 297.2)
XYZxyz(5.4217, 3.0328, 15.9193)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B71 #4D711B
analogous
#1B2271 #3F1B71 #6A1B71
triadic
#3F1B71 #713F1B #1B713F
tetradic
#3F1B71 #711B22 #4D711B #1B716A
square
#3F1B71 #711B22 #4D711B #1B716A
split-complementary
#3F1B71 #716A1B #22711B
monochromatic
#0E0619 #230F40 #3F1B71 #5B27A2 #7737CF

Accessibility & contrast

On white

13.07
#3F1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3F1B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1B71
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B71#FFFFFF#000000##FFFFFF
##3F1B711.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#323144
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f1b71;
/* rgb */ color: rgb(63, 27, 113);
/* oklch */ color: oklch(32.8% 0.138 297.2);
Tailwind
colors: {
  custom: {
    50: '#795b9b',
    500: '#3f1b71',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b71;
$custom-light: #795b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b71",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 265.116,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32818,
    "c": 0.13824,
    "h": 297.2
  },
  "luminance": 0.03033
}

Semantic roles & 50–950 ramp

primary
#3F1B71
secondary
#7CA642
accent
#E543A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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