#3F1FA5#3F1FA5

#3F1FA5 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.195 H 283.2°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#3F1FA5
RGBrgb(63, 31, 165)
HSLhsl(254, 68%, 38%)
HSVhsv(254, 81%, 65%)
CMYKcmyk(61.8%, 81.2%, 0%, 35.3%)
CIE-LABlab(26.02, 49.53, -65.87)
CIE-LCHlch(26.02, 82.42, 306.94°)
OKLaboklab(38.47% 0.0447 -0.1899)
OKLCHoklch(38.47% 0.195 283.2)
XYZxyz(9.3293, 4.7527, 36.0158)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1FA5 #85A51F
analogous
#1F42A5 #3F1FA5 #821FA5
triadic
#3F1FA5 #A53F1F #1FA53F
tetradic
#3F1FA5 #A51F42 #85A51F #1FA582
square
#3F1FA5 #A51F42 #85A51F #1FA582
split-complementary
#3F1FA5 #A5821F #42A51F
monochromatic
#180C3E #2B1571 #3F1FA5 #532AD7 #7D5EE1

Accessibility & contrast

On white

10.77
#3F1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3F1FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1FA5
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1FA5#FFFFFF#000000##FFFFFF
##3F1FA51.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f1fa5;
/* rgb */ color: rgb(63, 31, 165);
/* oklch */ color: oklch(38.5% 0.195 283.2);
Tailwind
colors: {
  custom: {
    50: '#8260c1',
    500: '#3f1fa5',
    950: '#000000',
  },
}
SCSS
$custom: #3f1fa5;
$custom-light: #8260c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1fa5",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 254.328,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38466,
    "c": 0.19514,
    "h": 283.2
  },
  "luminance": 0.04753
}

Semantic roles & 50–950 ramp

primary
#3F1FA5
secondary
#ACC55B
accent
#EB3DC2
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3F1FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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