#3F158F#3F158F

#3F158F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.179 H 289.0°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#3F158F
RGBrgb(63, 21, 143)
HSLhsl(261, 74%, 32%)
HSVhsv(261, 85%, 56%)
CMYKcmyk(55.9%, 85.3%, 0%, 43.9%)
CIE-LABlab(22.22, 47.56, -58.65)
CIE-LCHlch(22.22, 75.51, 309.04°)
OKLaboklab(35.14% 0.0582 -0.1687)
OKLCHoklch(35.14% 0.179 289)
XYZxyz(7.2745, 3.5759, 26.2882)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F158F #658F15
analogous
#15288F #3F158F #7C158F
triadic
#3F158F #8F3F15 #158F3F
tetradic
#3F158F #8F1528 #658F15 #158F7C
square
#3F158F #8F1528 #658F15 #158F7C
split-complementary
#3F158F #8F7C15 #288F15
monochromatic
#100524 #270D5A #3F158F #571DC4 #753CE2

Accessibility & contrast

On white

12.24
#3F158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3F158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F158F
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F158F#FFFFFF#000000##FFFFFF
##3F158F1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#1E3B54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f158f;
/* rgb */ color: rgb(63, 21, 143);
/* oklch */ color: oklch(35.1% 0.179 289.0);
Tailwind
colors: {
  custom: {
    50: '#7e5ab1',
    500: '#3f158f',
    950: '#000000',
  },
}
SCSS
$custom: #3f158f;
$custom-light: #7e5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f158f",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 260.656,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35142,
    "c": 0.17851,
    "h": 289
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#3F158F
secondary
#95C23E
accent
#F137B1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F158F

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

Preview Lab → · Contrast checker → · Palette generator →

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