#3F1C72#3F1C72

#3F1C72 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.138 H 296.6°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#3F1C72
RGBrgb(63, 28, 114)
HSLhsl(264, 61%, 28%)
HSVhsv(264, 75%, 45%)
CMYKcmyk(44.7%, 75.4%, 0%, 55.3%)
CIE-LABlab(20.45, 36.31, -43.19)
CIE-LCHlch(20.45, 56.43, 310.05°)
OKLaboklab(33.04% 0.0619 -0.1235)
OKLCHoklch(33.04% 0.138 296.6)
XYZxyz(5.5016, 3.1021, 16.2252)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1C72 #4F721C
analogous
#1C2472 #3F1C72 #6A1C72
triadic
#3F1C72 #723F1C #1C723F
tetradic
#3F1C72 #721C24 #4F721C #1C726A
square
#3F1C72 #721C24 #4F721C #1C726A
split-complementary
#3F1C72 #726A1C #24721C
monochromatic
#0E0619 #241041 #3F1C72 #5A28A3 #763ACF

Accessibility & contrast

On white

12.96
#3F1C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3F1C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1C72
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1C72#FFFFFF#000000##FFFFFF
##3F1C721.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#323245
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f1c72;
/* rgb */ color: rgb(63, 28, 114);
/* oklch */ color: oklch(33.0% 0.138 296.6);
Tailwind
colors: {
  custom: {
    50: '#795c9b',
    500: '#3f1c72',
    950: '#000000',
  },
}
SCSS
$custom: #3f1c72;
$custom-light: #795c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1c72",
  "rgb": {
    "r": 63,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 264.419,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33039,
    "c": 0.1382,
    "h": 296.6
  },
  "luminance": 0.03102
}

Semantic roles & 50–950 ramp

primary
#3F1C72
secondary
#7EA643
accent
#E444A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1C72

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

Preview Lab → · Contrast checker → · Palette generator →

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