#3F15A1#3F15A1

#3F15A1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.198 H 285.0°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#3F15A1
RGBrgb(63, 21, 161)
HSLhsl(258, 77%, 36%)
HSVhsv(258, 87%, 63%)
CMYKcmyk(60.9%, 87%, 0%, 36.9%)
CIE-LABlab(24.21, 52.43, -66.43)
CIE-LCHlch(24.21, 84.63, 308.28°)
OKLaboklab(37.1% 0.0512 -0.1914)
OKLCHoklch(37.1% 0.198 285)
XYZxyz(8.7491, 4.1657, 34.0543)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F15A1 #77A115
analogous
#1531A1 #3F15A1 #8515A1
triadic
#3F15A1 #A13F15 #15A13F
tetradic
#3F15A1 #A11531 #77A115 #15A185
square
#3F15A1 #A11531 #77A115 #15A185
split-complementary
#3F15A1 #A18515 #31A115
monochromatic
#150735 #2A0E6B #3F15A1 #541CD7 #7949E7

Accessibility & contrast

On white

11.46
#3F15A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3F15A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F15A1
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F15A1#FFFFFF#000000##FFFFFF
##3F15A11.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#00435F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f15a1;
/* rgb */ color: rgb(63, 21, 161);
/* oklch */ color: oklch(37.1% 0.198 285.0);
Tailwind
colors: {
  custom: {
    50: '#825bbe',
    500: '#3f15a1',
    950: '#000000',
  },
}
SCSS
$custom: #3f15a1;
$custom-light: #825bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3f15a1",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 258,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37095,
    "c": 0.19815,
    "h": 285
  },
  "luminance": 0.04166
}

Semantic roles & 50–950 ramp

primary
#3F15A1
secondary
#A2C849
accent
#F334BA
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3F15A1

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

Preview Lab → · Contrast checker → · Palette generator →

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