#3F198D#3F198D

#3F198D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.173 H 289.1°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#3F198D
RGBrgb(63, 25, 141)
HSLhsl(260, 70%, 33%)
HSVhsv(260, 82%, 55%)
CMYKcmyk(55.3%, 82.3%, 0%, 44.7%)
CIE-LABlab(22.57, 45.37, -56.83)
CIE-LCHlch(22.57, 72.71, 308.60°)
OKLaboklab(35.32% 0.0565 -0.1635)
OKLCHoklch(35.32% 0.173 289.1)
XYZxyz(7.2038, 3.6748, 25.5239)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F198D #678D19
analogous
#192D8D #3F198D #79198D
triadic
#3F198D #8D3F19 #198D3F
tetradic
#3F198D #8D192D #678D19 #198D79
square
#3F198D #8D192D #678D19 #198D79
split-complementary
#3F198D #8D7919 #2D8D19
monochromatic
#110725 #281059 #3F198D #5622C1 #7643DE

Accessibility & contrast

On white

12.10
#3F198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F198D
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F198D#FFFFFF#000000##FFFFFF
##3F198D1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#1F3C54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f198d;
/* rgb */ color: rgb(63, 25, 141);
/* oklch */ color: oklch(35.3% 0.173 289.1);
Tailwind
colors: {
  custom: {
    50: '#7e5caf',
    500: '#3f198d',
    950: '#000000',
  },
}
SCSS
$custom: #3f198d;
$custom-light: #7e5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f198d",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 259.655,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35319,
    "c": 0.17296,
    "h": 289.1
  },
  "luminance": 0.03675
}

Semantic roles & 50–950 ramp

primary
#3F198D
secondary
#96BF43
accent
#ED3BB3
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F198D

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

Preview Lab → · Contrast checker → · Palette generator →

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