#3F1FA1#3F1FA1

#3F1FA1 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.191 H 284.0°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#3F1FA1
RGBrgb(63, 31, 161)
HSLhsl(255, 68%, 38%)
HSVhsv(255, 81%, 63%)
CMYKcmyk(60.9%, 80.7%, 0%, 36.9%)
CIE-LABlab(25.59, 48.38, -64.15)
CIE-LCHlch(25.59, 80.34, 307.02°)
OKLaboklab(38.04% 0.046 -0.1849)
OKLCHoklch(38.04% 0.191 284)
XYZxyz(8.9709, 4.6093, 34.1283)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1FA1 #81A11F
analogous
#1F40A1 #3F1FA1 #801FA1
triadic
#3F1FA1 #A13F1F #1FA13F
tetradic
#3F1FA1 #A11F40 #81A11F #1FA180
square
#3F1FA1 #A11F40 #81A11F #1FA180
split-complementary
#3F1FA1 #A1801F #40A11F
monochromatic
#170B3A #2B156E #3F1FA1 #5329D4 #7C5BDF

Accessibility & contrast

On white

10.93
#3F1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3F1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1FA1
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1FA1#FFFFFF#000000##FFFFFF
##3F1FA11.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f1fa1;
/* rgb */ color: rgb(63, 31, 161);
/* oklch */ color: oklch(38.0% 0.191 284.0);
Tailwind
colors: {
  custom: {
    50: '#8160be',
    500: '#3f1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #3f1fa1;
$custom-light: #8160be;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1fa1",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 254.769,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38044,
    "c": 0.19055,
    "h": 284
  },
  "luminance": 0.0461
}

Semantic roles & 50–950 ramp

primary
#3F1FA1
secondary
#A9C458
accent
#EB3DC0
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3F1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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