#3F155B#3F155B

#3F155B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.120 H 308.1°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#3F155B
RGBrgb(63, 21, 91)
HSLhsl(276, 63%, 22%)
HSVhsv(276, 77%, 36%)
CMYKcmyk(30.8%, 76.9%, 0%, 64.3%)
CIE-LABlab(17.22, 33.67, -33.34)
CIE-LCHlch(17.22, 47.38, 315.28°)
OKLaboklab(30.13% 0.0743 -0.0945)
OKLCHoklch(30.13% 0.12 308.1)
XYZxyz(4.2060, 2.3485, 10.1272)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F155B #315B15
analogous
#1C155B #3F155B #5B1554
triadic
#3F155B #5B3F15 #155B3F
tetradic
#3F155B #5B1C15 #315B15 #15545B
square
#3F155B #5B1C15 #315B15 #15545B
split-complementary
#3F155B #545B15 #155B1C
monochromatic
#110619 #1D0A29 #3F155B #61208D #842CBE

Accessibility & contrast

On white

14.29
#3F155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3F155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F155B
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F155B#FFFFFF#000000##FFFFFF
##3F155B1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#032B5A
Tritanopia (blue-blind)
#3B2536
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3f155b;
/* rgb */ color: rgb(63, 21, 91);
/* oklch */ color: oklch(30.1% 0.120 308.1);
Tailwind
colors: {
  custom: {
    50: '#77578a',
    500: '#3f155b',
    950: '#000000',
  },
}
SCSS
$custom: #3f155b;
$custom-light: #77578a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f155b",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 276,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30133,
    "c": 0.12023,
    "h": 308.1
  },
  "luminance": 0.02348
}

Semantic roles & 50–950 ramp

primary
#3F155B
secondary
#5D9239
accent
#E64284
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F155B

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

Preview Lab → · Contrast checker → · Palette generator →

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