#3F197B#3F197B

#3F197B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.152 H 294.2°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#3F197B
RGBrgb(63, 25, 123)
HSLhsl(263, 66%, 29%)
HSVhsv(263, 80%, 48%)
CMYKcmyk(48.8%, 79.7%, 0%, 51.8%)
CIE-LABlab(20.76, 40.33, -48.45)
CIE-LCHlch(20.76, 63.04, 309.77°)
OKLaboklab(33.52% 0.0624 -0.139)
OKLCHoklch(33.52% 0.152 294.2)
XYZxyz(5.9717, 3.1819, 19.0346)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F197B #557B19
analogous
#19247B #3F197B #70197B
triadic
#3F197B #7B3F19 #197B3F
tetradic
#3F197B #7B1924 #557B19 #197B70
square
#3F197B #7B1924 #557B19 #197B70
split-complementary
#3F197B #7B7019 #247B19
monochromatic
#0D0519 #250F48 #3F197B #5923AE #7538D7

Accessibility & contrast

On white

12.83
#3F197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F197B
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F197B#FFFFFF#000000##FFFFFF
##3F197B1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#2D3449
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f197b;
/* rgb */ color: rgb(63, 25, 123);
/* oklch */ color: oklch(33.5% 0.152 294.2);
Tailwind
colors: {
  custom: {
    50: '#7b5aa2',
    500: '#3f197b',
    950: '#000000',
  },
}
SCSS
$custom: #3f197b;
$custom-light: #7b5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f197b",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 263.265,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33515,
    "c": 0.15232,
    "h": 294.2
  },
  "luminance": 0.03182
}

Semantic roles & 50–950 ramp

primary
#3F197B
secondary
#84AF40
accent
#E93FA7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F197B

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

Preview Lab → · Contrast checker → · Palette generator →

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