#3F155F#3F155F

#3F155F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.125 H 306.1°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#3F155F
RGBrgb(63, 21, 95)
HSLhsl(274, 64%, 23%)
HSVhsv(274, 78%, 37%)
CMYKcmyk(33.7%, 77.9%, 0%, 62.7%)
CIE-LABlab(17.55, 34.69, -35.47)
CIE-LCHlch(17.55, 49.62, 314.36°)
OKLaboklab(30.47% 0.0735 -0.1008)
OKLCHoklch(30.47% 0.125 306.1)
XYZxyz(4.3832, 2.4194, 11.0603)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F155F #355F15
analogous
#1A155F #3F155F #5F155A
triadic
#3F155F #5F3F15 #155F3F
tetradic
#3F155F #5F1A15 #355F15 #155A5F
square
#3F155F #5F1A15 #355F15 #155A5F
split-complementary
#3F155F #5A5F15 #155F1A
monochromatic
#110619 #1E0A2D #3F155F #602091 #812BC3

Accessibility & contrast

On white

14.15
#3F155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F155F
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F155F#FFFFFF#000000##FFFFFF
##3F155F1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#392738
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f155f;
/* rgb */ color: rgb(63, 21, 95);
/* oklch */ color: oklch(30.5% 0.125 306.1);
Tailwind
colors: {
  custom: {
    50: '#78578d',
    500: '#3f155f',
    950: '#000000',
  },
}
SCSS
$custom: #3f155f;
$custom-light: #78578d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f155f",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 274.054,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30472,
    "c": 0.12477,
    "h": 306.1
  },
  "luminance": 0.02419
}

Semantic roles & 50–950 ramp

primary
#3F155F
secondary
#62963A
accent
#E74189
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F155F

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

Preview Lab → · Contrast checker → · Palette generator →

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