#3F156F#3F156F

#3F156F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.143 H 299.1°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#3F156F
RGBrgb(63, 21, 111)
HSLhsl(268, 68%, 26%)
HSVhsv(268, 81%, 44%)
CMYKcmyk(43.2%, 81.1%, 0%, 56.5%)
CIE-LABlab(18.97, 38.90, -43.66)
CIE-LCHlch(18.97, 58.47, 311.70°)
OKLaboklab(31.92% 0.0695 -0.1249)
OKLCHoklch(31.92% 0.143 299.1)
XYZxyz(5.1866, 2.7407, 15.2916)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F156F #456F15
analogous
#15186F #3F156F #6C156F
triadic
#3F156F #6F3F15 #156F3F
tetradic
#3F156F #6F1518 #456F15 #156F6C
square
#3F156F #6F1518 #456F15 #156F6C
split-complementary
#3F156F #6F6C15 #186F15
monochromatic
#0F051A #220B3C #3F156F #5C1FA2 #7928D6

Accessibility & contrast

On white

13.56
#3F156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3F156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F156F
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F156F#FFFFFF#000000##FFFFFF
##3F156F1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#332D42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f156f;
/* rgb */ color: rgb(63, 21, 111);
/* oklch */ color: oklch(31.9% 0.143 299.1);
Tailwind
colors: {
  custom: {
    50: '#7a5899',
    500: '#3f156f',
    950: '#000000',
  },
}
SCSS
$custom: #3f156f;
$custom-light: #7a5899;
$custom-dark: #000000;
JSON
{
  "hex": "#3f156f",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 268,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31917,
    "c": 0.14288,
    "h": 299.1
  },
  "luminance": 0.02741
}

Semantic roles & 50–950 ramp

primary
#3F156F
secondary
#73A53A
accent
#EB3D9A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F156F

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

Preview Lab → · Contrast checker → · Palette generator →

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