#3F1772#3F1772

#3F1772 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.144 H 297.6°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#3F1772
RGBrgb(63, 23, 114)
HSLhsl(266, 66%, 27%)
HSVhsv(266, 80%, 45%)
CMYKcmyk(44.7%, 79.8%, 0%, 55.3%)
CIE-LABlab(19.57, 38.79, -44.62)
CIE-LCHlch(19.57, 59.12, 311.00°)
OKLaboklab(32.42% 0.0668 -0.1277)
OKLCHoklch(32.42% 0.144 297.6)
XYZxyz(5.3928, 2.8844, 16.1889)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1772 #4A7217
analogous
#171C72 #3F1772 #6D1772
triadic
#3F1772 #723F17 #17723F
tetradic
#3F1772 #72171C #4A7217 #17726D
square
#3F1772 #72171C #4A7217 #17726D
split-complementary
#3F1772 #726D17 #1C7217
monochromatic
#0E0519 #230D3F #3F1772 #5B21A5 #782ED5

Accessibility & contrast

On white

13.32
#3F1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3F1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1772
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1772#FFFFFF#000000##FFFFFF
##3F17721.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#322F44
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3f1772;
/* rgb */ color: rgb(63, 23, 114);
/* oklch */ color: oklch(32.4% 0.144 297.6);
Tailwind
colors: {
  custom: {
    50: '#7a599b',
    500: '#3f1772',
    950: '#000000',
  },
}
SCSS
$custom: #3f1772;
$custom-light: #7a599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1772",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 266.374,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32424,
    "c": 0.1441,
    "h": 297.6
  },
  "luminance": 0.02884
}

Semantic roles & 50–950 ramp

primary
#3F1772
secondary
#79A83D
accent
#E93E9E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1772

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

Preview Lab → · Contrast checker → · Palette generator →

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