#3F197C#3F197C

#3F197C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.153 H 293.8°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#3F197C
RGBrgb(63, 25, 124)
HSLhsl(263, 66%, 29%)
HSVhsv(263, 80%, 49%)
CMYKcmyk(49.2%, 79.8%, 0%, 51.4%)
CIE-LABlab(20.85, 40.61, -48.93)
CIE-LCHlch(20.85, 63.59, 309.69°)
OKLaboklab(33.61% 0.0621 -0.1404)
OKLCHoklch(33.61% 0.153 293.8)
XYZxyz(6.0346, 3.2071, 19.3659)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F197C #567C19
analogous
#19257C #3F197C #71197C
triadic
#3F197C #7C3F19 #197C3F
tetradic
#3F197C #7C1925 #567C19 #197C71
square
#3F197C #7C1925 #567C19 #197C71
split-complementary
#3F197C #7C7119 #257C19
monochromatic
#0D0519 #250F49 #3F197C #5923AF #7538D7

Accessibility & contrast

On white

12.79
#3F197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3F197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F197C
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F197C#FFFFFF#000000##FFFFFF
##3F197C1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#2C344A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f197c;
/* rgb */ color: rgb(63, 25, 124);
/* oklch */ color: oklch(33.6% 0.153 293.8);
Tailwind
colors: {
  custom: {
    50: '#7b5ba3',
    500: '#3f197c',
    950: '#000000',
  },
}
SCSS
$custom: #3f197c;
$custom-light: #7b5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f197c",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 263.03,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33612,
    "c": 0.15347,
    "h": 293.8
  },
  "luminance": 0.03207
}

Semantic roles & 50–950 ramp

primary
#3F197C
secondary
#85B040
accent
#E93EA8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F197C

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

Preview Lab → · Contrast checker → · Palette generator →

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