#3F197F#3F197F

#3F197F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.157 H 292.9°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#3F197F
RGBrgb(63, 25, 127)
HSLhsl(262, 67%, 30%)
HSVhsv(262, 80%, 50%)
CMYKcmyk(50.4%, 80.3%, 0%, 50.2%)
CIE-LABlab(21.15, 41.45, -50.36)
CIE-LCHlch(21.15, 65.22, 309.46°)
OKLaboklab(33.91% 0.0611 -0.1446)
OKLCHoklch(33.91% 0.157 292.9)
XYZxyz(6.2272, 3.2841, 20.3803)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F197F #597F19
analogous
#19267F #3F197F #72197F
triadic
#3F197F #7F3F19 #197F3F
tetradic
#3F197F #7F1926 #597F19 #197F72
square
#3F197F #7F1926 #597F19 #197F72
split-complementary
#3F197F #7F7219 #267F19
monochromatic
#0D051A #260F4C #3F197F #5823B2 #753AD8

Accessibility & contrast

On white

12.68
#3F197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3F197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F197F
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F197F#FFFFFF#000000##FFFFFF
##3F197F1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#2B364C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f197f;
/* rgb */ color: rgb(63, 25, 127);
/* oklch */ color: oklch(33.9% 0.157 292.9);
Tailwind
colors: {
  custom: {
    50: '#7c5ba5',
    500: '#3f197f',
    950: '#000000',
  },
}
SCSS
$custom: #3f197f;
$custom-light: #7c5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f197f",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 262.353,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33905,
    "c": 0.15694,
    "h": 292.9
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#3F197F
secondary
#88B341
accent
#EA3EAA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F197F

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

Preview Lab → · Contrast checker → · Palette generator →

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