#3F1F95#3F1F95

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

Color values

HEX#3F1F95
RGBrgb(63, 31, 149)
HSLhsl(256, 66%, 35%)
HSVhsv(256, 79%, 58%)
CMYKcmyk(57.7%, 79.2%, 0%, 41.6%)
CIE-LABlab(24.34, 44.90, -58.86)
CIE-LCHlch(24.34, 74.03, 307.34°)
OKLaboklab(36.8% 0.0498 -0.1695)
OKLCHoklch(36.8% 0.177 286.4)
XYZxyz(7.9631, 4.2062, 28.8202)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F95 #75951F
analogous
#1F3A95 #3F1F95 #7A1F95
triadic
#3F1F95 #953F1F #1F953F
tetradic
#3F1F95 #951F3A #75951F #1F957A
square
#3F1F95 #951F3A #75951F #1F957A
split-complementary
#3F1F95 #957A1F #3A951F
monochromatic
#140A30 #2A1462 #3F1F95 #542AC8 #7853DB

Accessibility & contrast

On white

11.40
#3F1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1F95
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F95#FFFFFF#000000##FFFFFF
##3F1F951.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#154159
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f1f95;
/* rgb */ color: rgb(63, 31, 149);
/* oklch */ color: oklch(36.8% 0.177 286.4);
Tailwind
colors: {
  custom: {
    50: '#7f5fb5',
    500: '#3f1f95',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f95;
$custom-light: #7f5fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f95",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 256.271,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36801,
    "c": 0.17663,
    "h": 286.4
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F1F95

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

Preview Lab → · Contrast checker → · Palette generator →

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