#3F157F#3F157F

#3F157F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.161 H 293.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#3F157F
RGBrgb(63, 21, 127)
HSLhsl(264, 72%, 29%)
HSVhsv(264, 83%, 50%)
CMYKcmyk(50.4%, 83.5%, 0%, 50.2%)
CIE-LABlab(20.54, 43.21, -51.36)
CIE-LCHlch(20.54, 67.12, 310.08°)
OKLaboklab(33.48% 0.0642 -0.1474)
OKLCHoklch(33.48% 0.161 293.5)
XYZxyz(6.1478, 3.1252, 20.3539)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F157F #557F15
analogous
#15207F #3F157F #74157F
triadic
#3F157F #7F3F15 #157F3F
tetradic
#3F157F #7F1520 #557F15 #157F74
square
#3F157F #7F1520 #557F15 #157F74
split-complementary
#3F157F #7F7415 #207F15
monochromatic
#0D041A #250C4A #3F157F #591EB4 #7531DD

Accessibility & contrast

On white

12.92
#3F157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3F157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F157F
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F157F#FFFFFF#000000##FFFFFF
##3F157F1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#2B344B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f157f;
/* rgb */ color: rgb(63, 21, 127);
/* oklch */ color: oklch(33.5% 0.161 293.5);
Tailwind
colors: {
  custom: {
    50: '#7c59a5',
    500: '#3f157f',
    950: '#000000',
  },
}
SCSS
$custom: #3f157f;
$custom-light: #7c59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f157f",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 263.774,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33482,
    "c": 0.1608,
    "h": 293.5
  },
  "luminance": 0.03125
}

Semantic roles & 50–950 ramp

primary
#3F157F
secondary
#84B43C
accent
#EE39A7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F157F

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

Preview Lab → · Contrast checker → · Palette generator →

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