#3F198F#3F198F

#3F198F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.175 H 288.6°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#3F198F
RGBrgb(63, 25, 143)
HSLhsl(259, 70%, 33%)
HSVhsv(259, 83%, 56%)
CMYKcmyk(55.9%, 82.5%, 0%, 43.9%)
CIE-LABlab(22.77, 45.93, -57.73)
CIE-LCHlch(22.77, 73.77, 308.51°)
OKLaboklab(35.53% 0.0558 -0.1661)
OKLCHoklch(35.53% 0.175 288.6)
XYZxyz(7.3540, 3.7348, 26.3147)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F198F #698F19
analogous
#192E8F #3F198F #7A198F
triadic
#3F198F #8F3F19 #198F3F
tetradic
#3F198F #8F192E #698F19 #198F7A
square
#3F198F #8F192E #698F19 #198F7A
split-complementary
#3F198F #8F7A19 #2E8F19
monochromatic
#110727 #28105B #3F198F #5622C3 #7644DE

Accessibility & contrast

On white

12.02
#3F198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3F198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F198F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F198F#FFFFFF#000000##FFFFFF
##3F198F1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#1D3C55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f198f;
/* rgb */ color: rgb(63, 25, 143);
/* oklch */ color: oklch(35.5% 0.175 288.6);
Tailwind
colors: {
  custom: {
    50: '#7e5cb1',
    500: '#3f198f',
    950: '#000000',
  },
}
SCSS
$custom: #3f198f;
$custom-light: #7e5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f198f",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 259.322,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35526,
    "c": 0.17522,
    "h": 288.6
  },
  "luminance": 0.03735
}

Semantic roles & 50–950 ramp

primary
#3F198F
secondary
#98BF44
accent
#ED3BB4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F198F

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

Preview Lab → · Contrast checker → · Palette generator →

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