#3F1996#3F1996

#3F1996 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.183 H 286.9°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#3F1996
RGBrgb(63, 25, 150)
HSLhsl(258, 71%, 34%)
HSVhsv(258, 83%, 59%)
CMYKcmyk(58%, 83.3%, 0%, 41.2%)
CIE-LABlab(23.52, 47.88, -60.83)
CIE-LCHlch(23.52, 77.42, 308.21°)
OKLaboklab(36.26% 0.0533 -0.1752)
OKLCHoklch(36.26% 0.183 286.9)
XYZxyz(7.9009, 3.9536, 29.1950)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1996 #709619
analogous
#193296 #3F1996 #7E1996
triadic
#3F1996 #963F19 #19963F
tetradic
#3F1996 #961932 #709619 #19967E
square
#3F1996 #961932 #709619 #19967E
split-complementary
#3F1996 #967E19 #329619
monochromatic
#13082D #291062 #3F1996 #5522CA #7749E1

Accessibility & contrast

On white

11.73
#3F1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3F1996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1996
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1996#FFFFFF#000000##FFFFFF
##3F19961.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#143F59
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f1996;
/* rgb */ color: rgb(63, 25, 150);
/* oklch */ color: oklch(36.3% 0.183 286.9);
Tailwind
colors: {
  custom: {
    50: '#7f5cb6',
    500: '#3f1996',
    950: '#000000',
  },
}
SCSS
$custom: #3f1996;
$custom-light: #7f5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1996",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 258.24,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36261,
    "c": 0.18311,
    "h": 286.9
  },
  "luminance": 0.03954
}

Semantic roles & 50–950 ramp

primary
#3F1996
secondary
#9DC249
accent
#EE3AB7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F1996

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

Preview Lab → · Contrast checker → · Palette generator →

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