#3F1563#3F1563

#3F1563 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.129 H 304.2°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#3F1563
RGBrgb(63, 21, 99)
HSLhsl(272, 65%, 24%)
HSVhsv(272, 79%, 39%)
CMYKcmyk(36.4%, 78.8%, 0%, 61.2%)
CIE-LABlab(17.89, 35.73, -37.57)
CIE-LCHlch(17.89, 51.84, 313.56°)
OKLaboklab(30.82% 0.0726 -0.107)
OKLCHoklch(30.82% 0.129 304.2)
XYZxyz(4.5697, 2.4940, 12.0426)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1563 #396315
analogous
#181563 #3F1563 #631560
triadic
#3F1563 #633F15 #15633F
tetradic
#3F1563 #631815 #396315 #156063
square
#3F1563 #631815 #396315 #156063
split-complementary
#3F1563 #606315 #156318
monochromatic
#100519 #1F0A31 #3F1563 #5F2095 #7F2AC8

Accessibility & contrast

On white

14.01
#3F1563 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3F1563 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1563
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1563#FFFFFF#000000##FFFFFF
##3F15631.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002C61
Tritanopia (blue-blind)
#38283B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3f1563;
/* rgb */ color: rgb(63, 21, 99);
/* oklch */ color: oklch(30.8% 0.129 304.2);
Tailwind
colors: {
  custom: {
    50: '#785790',
    500: '#3f1563',
    950: '#000000',
  },
}
SCSS
$custom: #3f1563;
$custom-light: #785790;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1563",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 99
  },
  "hsl": {
    "h": 272.308,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.3082,
    "c": 0.12931,
    "h": 304.2
  },
  "luminance": 0.02494
}

Semantic roles & 50–950 ramp

primary
#3F1563
secondary
#669A3A
accent
#E8408D
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F1563

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

Preview Lab → · Contrast checker → · Palette generator →

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