#3F159F#3F159F

#3F159F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.9% C 0.196 H 285.4°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#3F159F
RGBrgb(63, 21, 159)
HSLhsl(258, 77%, 35%)
HSVhsv(258, 87%, 62%)
CMYKcmyk(60.4%, 86.8%, 0%, 37.6%)
CIE-LABlab(23.99, 51.89, -65.58)
CIE-LCHlch(23.99, 83.63, 308.35°)
OKLaboklab(36.88% 0.052 -0.189)
OKLCHoklch(36.88% 0.196 285.4)
XYZxyz(8.5742, 4.0958, 33.1329)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F159F #759F15
analogous
#15309F #3F159F #84159F
triadic
#3F159F #9F3F15 #159F3F
tetradic
#3F159F #9F1530 #759F15 #159F84
square
#3F159F #9F1530 #759F15 #159F84
split-complementary
#3F159F #9F8415 #309F15
monochromatic
#140733 #2A0E69 #3F159F #541CD5 #7848E7

Accessibility & contrast

On white

11.54
#3F159F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3F159F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F159F
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F159F#FFFFFF#000000##FFFFFF
##3F159F1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#00425E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f159f;
/* rgb */ color: rgb(63, 21, 159);
/* oklch */ color: oklch(36.9% 0.196 285.4);
Tailwind
colors: {
  custom: {
    50: '#815bbd',
    500: '#3f159f',
    950: '#000000',
  },
}
SCSS
$custom: #3f159f;
$custom-light: #815bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3f159f",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 159
  },
  "hsl": {
    "h": 258.261,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36875,
    "c": 0.19598,
    "h": 285.4
  },
  "luminance": 0.04096
}

Semantic roles & 50–950 ramp

primary
#3F159F
secondary
#A1C848
accent
#F335B9
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3F159F

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

Preview Lab → · Contrast checker → · Palette generator →

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