#3F197E#3F197E

#3F197E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.156 H 293.2°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#3F197E
RGBrgb(63, 25, 126)
HSLhsl(263, 67%, 30%)
HSVhsv(263, 80%, 49%)
CMYKcmyk(50%, 80.2%, 0%, 50.6%)
CIE-LABlab(21.05, 41.17, -49.88)
CIE-LCHlch(21.05, 64.68, 309.53°)
OKLaboklab(33.81% 0.0614 -0.1432)
OKLCHoklch(33.81% 0.156 293.2)
XYZxyz(6.1624, 3.2582, 20.0388)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F197E #587E19
analogous
#19267E #3F197E #71197E
triadic
#3F197E #7E3F19 #197E3F
tetradic
#3F197E #7E1926 #587E19 #197E71
square
#3F197E #7E1926 #587E19 #197E71
split-complementary
#3F197E #7E7119 #267E19
monochromatic
#0D051A #250F4B #3F197E #5923B1 #753AD8

Accessibility & contrast

On white

12.71
#3F197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3F197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F197E
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F197E#FFFFFF#000000##FFFFFF
##3F197E1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#2B354B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f197e;
/* rgb */ color: rgb(63, 25, 126);
/* oklch */ color: oklch(33.8% 0.156 293.2);
Tailwind
colors: {
  custom: {
    50: '#7b5ba4',
    500: '#3f197e',
    950: '#000000',
  },
}
SCSS
$custom: #3f197e;
$custom-light: #7b5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f197e",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 262.574,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33807,
    "c": 0.15578,
    "h": 293.2
  },
  "luminance": 0.03258
}

Semantic roles & 50–950 ramp

primary
#3F197E
secondary
#87B241
accent
#EA3EA9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F197E

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

Preview Lab → · Contrast checker → · Palette generator →

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