#3F1071#3F1071

#3F1071 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.150 H 299.1°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#3F1071
RGBrgb(63, 16, 113)
HSLhsl(269, 75%, 25%)
HSVhsv(269, 86%, 44%)
CMYKcmyk(44.2%, 85.8%, 0%, 55.7%)
CIE-LABlab(18.45, 41.50, -45.81)
CIE-LCHlch(18.45, 61.82, 312.17°)
OKLaboklab(31.61% 0.0729 -0.1311)
OKLCHoklch(31.61% 0.15 299.1)
XYZxyz(5.2151, 2.6195, 15.8504)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1071 #427110
analogous
#101271 #3F1071 #6F1071
triadic
#3F1071 #713F10 #10713F
tetradic
#3F1071 #711012 #427110 #10716F
square
#3F1071 #711012 #427110 #10716F
split-complementary
#3F1071 #716F10 #127110
monochromatic
#0F041B #21083B #3F1071 #5D18A7 #7B1FDC

Accessibility & contrast

On white

13.78
#3F1071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3F1071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1071
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1071#FFFFFF#000000##FFFFFF
##3F10711.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#322C42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3f1071;
/* rgb */ color: rgb(63, 16, 113);
/* oklch */ color: oklch(31.6% 0.150 299.1);
Tailwind
colors: {
  custom: {
    50: '#7a569b',
    500: '#3f1071',
    950: '#000000',
  },
}
SCSS
$custom: #3f1071;
$custom-light: #7a569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1071",
  "rgb": {
    "r": 63,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 269.072,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31612,
    "c": 0.15003,
    "h": 299.1
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#3F1071
secondary
#70A934
accent
#F23697
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F1071

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

Preview Lab → · Contrast checker → · Palette generator →

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