#3F197A#3F197A

#3F197A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.151 H 294.5°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#3F197A
RGBrgb(63, 25, 122)
HSLhsl(264, 66%, 29%)
HSVhsv(264, 80%, 48%)
CMYKcmyk(48.4%, 79.5%, 0%, 52.2%)
CIE-LABlab(20.66, 40.05, -47.97)
CIE-LCHlch(20.66, 62.50, 309.86°)
OKLaboklab(33.42% 0.0627 -0.1376)
OKLCHoklch(33.42% 0.151 294.5)
XYZxyz(5.9094, 3.1570, 18.7066)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F197A #547A19
analogous
#19247A #3F197A #70197A
triadic
#3F197A #7A3F19 #197A3F
tetradic
#3F197A #7A1924 #547A19 #197A70
square
#3F197A #7A1924 #547A19 #197A70
split-complementary
#3F197A #7A7019 #247A19
monochromatic
#0D0519 #250F47 #3F197A #5923AD #7637D6

Accessibility & contrast

On white

12.87
#3F197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3F197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F197A
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F197A#FFFFFF#000000##FFFFFF
##3F197A1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#2E3449
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f197a;
/* rgb */ color: rgb(63, 25, 122);
/* oklch */ color: oklch(33.4% 0.151 294.5);
Tailwind
colors: {
  custom: {
    50: '#7b5aa1',
    500: '#3f197a',
    950: '#000000',
  },
}
SCSS
$custom: #3f197a;
$custom-light: #7b5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f197a",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 263.505,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33418,
    "c": 0.15115,
    "h": 294.5
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#3F197A
secondary
#83AF40
accent
#E93FA6
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F197A

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

Preview Lab → · Contrast checker → · Palette generator →

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