#3F155C#3F155C

#3F155C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.121 H 307.6°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#3F155C
RGBrgb(63, 21, 92)
HSLhsl(275, 63%, 22%)
HSVhsv(275, 77%, 36%)
CMYKcmyk(31.5%, 77.2%, 0%, 63.9%)
CIE-LABlab(17.30, 33.92, -33.88)
CIE-LCHlch(17.30, 47.94, 315.04°)
OKLaboklab(30.22% 0.0741 -0.0961)
OKLCHoklch(30.22% 0.121 307.6)
XYZxyz(4.2494, 2.3659, 10.3559)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F155C #325C15
analogous
#1C155C #3F155C #5C1556
triadic
#3F155C #5C3F15 #155C3F
tetradic
#3F155C #5C1C15 #325C15 #15565C
square
#3F155C #5C1C15 #325C15 #15565C
split-complementary
#3F155C #565C15 #155C1C
monochromatic
#110619 #1D0A2A #3F155C #61208E #832CC0

Accessibility & contrast

On white

14.25
#3F155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F155C
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F155C#FFFFFF#000000##FFFFFF
##3F155C1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#012B5B
Tritanopia (blue-blind)
#3A2537
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f155c;
/* rgb */ color: rgb(63, 21, 92);
/* oklch */ color: oklch(30.2% 0.121 307.6);
Tailwind
colors: {
  custom: {
    50: '#77578b',
    500: '#3f155c',
    950: '#000000',
  },
}
SCSS
$custom: #3f155c;
$custom-light: #77578b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f155c",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 275.493,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30217,
    "c": 0.12136,
    "h": 307.6
  },
  "luminance": 0.02366
}

Semantic roles & 50–950 ramp

primary
#3F155C
secondary
#5E9339
accent
#E64285
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F155C

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

Preview Lab → · Contrast checker → · Palette generator →

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