#3F1E96#3F1E96

#3F1E96 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.179 H 286.3°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#3F1E96
RGBrgb(63, 30, 150)
HSLhsl(257, 67%, 35%)
HSVhsv(257, 80%, 59%)
CMYKcmyk(58%, 80%, 0%, 41.2%)
CIE-LABlab(24.28, 45.66, -59.58)
CIE-LCHlch(24.28, 75.06, 307.47°)
OKLaboklab(36.79% 0.0501 -0.1716)
OKLCHoklch(36.79% 0.179 286.3)
XYZxyz(8.0175, 4.1869, 29.2339)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1E96 #75961E
analogous
#1E3996 #3F1E96 #7B1E96
triadic
#3F1E96 #963F1E #1E963F
tetradic
#3F1E96 #961E39 #75961E #1E967B
square
#3F1E96 #961E39 #75961E #1E967B
split-complementary
#3F1E96 #967B1E #39961E
monochromatic
#140A30 #2A1463 #3F1E96 #5428C9 #7852DC

Accessibility & contrast

On white

11.43
#3F1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3F1E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1E96
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1E96#FFFFFF#000000##FFFFFF
##3F1E961.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1e96;
/* rgb */ color: rgb(63, 30, 150);
/* oklch */ color: oklch(36.8% 0.179 286.3);
Tailwind
colors: {
  custom: {
    50: '#7f5fb6',
    500: '#3f1e96',
    950: '#000000',
  },
}
SCSS
$custom: #3f1e96;
$custom-light: #7f5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1e96",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 256.5,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36789,
    "c": 0.17874,
    "h": 286.3
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

primary
#3F1E96
secondary
#A1BF50
accent
#EA3EBA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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