#3F198E#3F198E

#3F198E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.174 H 288.8°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#3F198E
RGBrgb(63, 25, 142)
HSLhsl(259, 70%, 33%)
HSVhsv(259, 82%, 56%)
CMYKcmyk(55.6%, 82.4%, 0%, 44.3%)
CIE-LABlab(22.67, 45.65, -57.28)
CIE-LCHlch(22.67, 73.24, 308.55°)
OKLaboklab(35.42% 0.0561 -0.1648)
OKLCHoklch(35.42% 0.174 288.8)
XYZxyz(7.2786, 3.7047, 25.9175)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F198E #688E19
analogous
#192E8E #3F198E #79198E
triadic
#3F198E #8E3F19 #198E3F
tetradic
#3F198E #8E192E #688E19 #198E79
square
#3F198E #8E192E #688E19 #198E79
split-complementary
#3F198E #8E7919 #2E8E19
monochromatic
#110726 #28105A #3F198E #5622C2 #7643DE

Accessibility & contrast

On white

12.06
#3F198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3F198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F198E
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F198E#FFFFFF#000000##FFFFFF
##3F198E1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#1E3C54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f198e;
/* rgb */ color: rgb(63, 25, 142);
/* oklch */ color: oklch(35.4% 0.174 288.8);
Tailwind
colors: {
  custom: {
    50: '#7e5cb0',
    500: '#3f198e',
    950: '#000000',
  },
}
SCSS
$custom: #3f198e;
$custom-light: #7e5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f198e",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 259.487,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35423,
    "c": 0.17408,
    "h": 288.8
  },
  "luminance": 0.03705
}

Semantic roles & 50–950 ramp

primary
#3F198E
secondary
#97BF44
accent
#ED3BB3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F198E

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

Preview Lab → · Contrast checker → · Palette generator →

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