#3F1F96#3F1F96

#3F1F96 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.178 H 286.1°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#3F1F96
RGBrgb(63, 31, 150)
HSLhsl(256, 66%, 35%)
HSVhsv(256, 79%, 59%)
CMYKcmyk(58%, 79.3%, 0%, 41.2%)
CIE-LABlab(24.44, 45.19, -59.31)
CIE-LCHlch(24.44, 74.56, 307.31°)
OKLaboklab(36.9% 0.0495 -0.1708)
OKLCHoklch(36.9% 0.178 286.1)
XYZxyz(8.0432, 4.2383, 29.2425)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F96 #76961F
analogous
#1F3B96 #3F1F96 #7A1F96
triadic
#3F1F96 #963F1F #1F963F
tetradic
#3F1F96 #961F3B #76961F #1F967A
square
#3F1F96 #961F3B #76961F #1F967A
split-complementary
#3F1F96 #967A1F #3B961F
monochromatic
#140A31 #2A1563 #3F1F96 #5429C9 #7854DC

Accessibility & contrast

On white

11.36
#3F1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3F1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F96
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F96#FFFFFF#000000##FFFFFF
##3F1F961.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003794
Tritanopia (blue-blind)
#14425A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f1f96;
/* rgb */ color: rgb(63, 31, 150);
/* oklch */ color: oklch(36.9% 0.178 286.1);
Tailwind
colors: {
  custom: {
    50: '#7f5fb6',
    500: '#3f1f96',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f96;
$custom-light: #7f5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f96",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 256.134,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36903,
    "c": 0.1778,
    "h": 286.1
  },
  "luminance": 0.04239
}

Semantic roles & 50–950 ramp

primary
#3F1F96
secondary
#A2BF52
accent
#E93FBB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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