#3F0C5A#3F0C5A

#3F0C5A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.130 H 310.1°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#3F0C5A
RGBrgb(63, 12, 90)
HSLhsl(279, 76%, 20%)
HSVhsv(279, 87%, 35%)
CMYKcmyk(30%, 86.7%, 0%, 64.7%)
CIE-LABlab(15.79, 37.28, -34.99)
CIE-LCHlch(15.79, 51.13, 316.81°)
OKLaboklab(29.1% 0.0835 -0.0993)
OKLCHoklch(29.1% 0.13 310.1)
XYZxyz(4.0265, 2.0580, 9.8560)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F0C5A #275A0C
analogous
#180C5A #3F0C5A #5A0C4E
triadic
#3F0C5A #5A3F0C #0C5A3F
tetradic
#3F0C5A #5A180C #275A0C #0C4E5A
square
#3F0C5A #5A180C #275A0C #0C4E5A
split-complementary
#3F0C5A #4E5A0C #0C5A18
monochromatic
#13041B #190524 #3F0C5A #651390 #8B1AC6

Accessibility & contrast

On white

14.88
#3F0C5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3F0C5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F0C5A
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F0C5A#FFFFFF#000000##FFFFFF
##3F0C5A1.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002858
Tritanopia (blue-blind)
#3B2034
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3f0c5a;
/* rgb */ color: rgb(63, 12, 90);
/* oklch */ color: oklch(29.1% 0.130 310.1);
Tailwind
colors: {
  custom: {
    50: '#785289',
    500: '#3f0c5a',
    950: '#000000',
  },
}
SCSS
$custom: #3f0c5a;
$custom-light: #785289;
$custom-dark: #000000;
JSON
{
  "hex": "#3f0c5a",
  "rgb": {
    "r": 63,
    "g": 12,
    "b": 90
  },
  "hsl": {
    "h": 279.231,
    "s": 76.471,
    "l": 20
  },
  "oklch": {
    "l": 0.29099,
    "c": 0.12978,
    "h": 310.1
  },
  "luminance": 0.02058
}

Semantic roles & 50–950 ramp

primary
#3F0C5A
secondary
#51952D
accent
#F33577
background
#F7F4F8
surface
#EEE7F0
border
#C9C3CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F0C5A

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

Preview Lab → · Contrast checker → · Palette generator →

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