#3F155D#3F155D

#3F155D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.122 H 307.1°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#3F155D
RGBrgb(63, 21, 93)
HSLhsl(275, 63%, 22%)
HSVhsv(275, 77%, 36%)
CMYKcmyk(32.3%, 77.4%, 0%, 63.5%)
CIE-LABlab(17.38, 34.18, -34.41)
CIE-LCHlch(17.38, 48.50, 314.80°)
OKLaboklab(30.3% 0.0739 -0.0977)
OKLCHoklch(30.3% 0.123 307.1)
XYZxyz(4.2934, 2.3835, 10.5877)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F155D #335D15
analogous
#1B155D #3F155D #5D1557
triadic
#3F155D #5D3F15 #155D3F
tetradic
#3F155D #5D1B15 #335D15 #15575D
square
#3F155D #5D1B15 #335D15 #15575D
split-complementary
#3F155D #575D15 #155D1B
monochromatic
#110619 #1D0A2B #3F155D #61208F #832CC1

Accessibility & contrast

On white

14.22
#3F155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3F155D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F155D
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F155D#FFFFFF#000000##FFFFFF
##3F155D1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#002B5B
Tritanopia (blue-blind)
#3A2637
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f155d;
/* rgb */ color: rgb(63, 21, 93);
/* oklch */ color: oklch(30.3% 0.122 307.1);
Tailwind
colors: {
  custom: {
    50: '#77578b',
    500: '#3f155d',
    950: '#000000',
  },
}
SCSS
$custom: #3f155d;
$custom-light: #77578b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f155d",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 275,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30301,
    "c": 0.1225,
    "h": 307.1
  },
  "luminance": 0.02383
}

Semantic roles & 50–950 ramp

primary
#3F155D
secondary
#5F9439
accent
#E64286
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F155D

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

Preview Lab → · Contrast checker → · Palette generator →

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