#3F1966#3F1966

#3F1966 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.128 H 302.0°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#3F1966
RGBrgb(63, 25, 102)
HSLhsl(270, 61%, 25%)
HSVhsv(270, 75%, 40%)
CMYKcmyk(38.2%, 75.5%, 0%, 60%)
CIE-LABlab(18.85, 34.54, -37.99)
CIE-LCHlch(18.85, 51.35, 312.28°)
OKLaboklab(31.58% 0.0677 -0.1082)
OKLCHoklch(31.58% 0.128 302)
XYZxyz(4.7952, 2.7113, 12.8385)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1966 #406619
analogous
#191A66 #3F1966 #651966
triadic
#3F1966 #663F19 #19663F
tetradic
#3F1966 #66191A #406619 #196665
square
#3F1966 #66191A #406619 #196665
split-complementary
#3F1966 #666519 #1A6619
monochromatic
#0F0619 #210D35 #3F1966 #5D2597 #7C31C8

Accessibility & contrast

On white

13.62
#3F1966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3F1966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1966
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1966#FFFFFF#000000##FFFFFF
##3F19661.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002D64
Tritanopia (blue-blind)
#372C3D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f1966;
/* rgb */ color: rgb(63, 25, 102);
/* oklch */ color: oklch(31.6% 0.128 302.0);
Tailwind
colors: {
  custom: {
    50: '#785992',
    500: '#3f1966',
    950: '#000000',
  },
}
SCSS
$custom: #3f1966;
$custom-light: #785992;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1966",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 269.61,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31578,
    "c": 0.12766,
    "h": 302
  },
  "luminance": 0.02711
}

Semantic roles & 50–950 ramp

primary
#3F1966
secondary
#6E9C3F
accent
#E44495
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3F1966

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

Preview Lab → · Contrast checker → · Palette generator →

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