#3B197F#3B197F

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

Color values

HEX#3B197F
RGBrgb(59, 25, 127)
HSLhsl(260, 67%, 30%)
HSVhsv(260, 80%, 50%)
CMYKcmyk(53.5%, 80.3%, 0%, 50.2%)
CIE-LABlab(20.66, 40.85, -51.17)
CIE-LCHlch(20.66, 65.48, 308.60°)
OKLaboklab(33.46% 0.0546 -0.1471)
OKLCHoklch(33.46% 0.157 290.4)
XYZxyz(5.9809, 3.1571, 20.3688)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B197F #5D7F19
analogous
#192A7F #3B197F #6E197F
triadic
#3B197F #7F3B19 #197F3B
tetradic
#3B197F #7F192A #5D7F19 #197F6E
square
#3B197F #7F192A #5D7F19 #197F6E
split-complementary
#3B197F #7F6E19 #2A7F19
monochromatic
#0C051A #230F4C #3B197F #5323B2 #6F3AD8

Accessibility & contrast

On white

12.87
#3B197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3B197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B197F
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B197F#FFFFFF#000000##FFFFFF
##3B197F1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#22364C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3b197f;
/* rgb */ color: rgb(59, 25, 127);
/* oklch */ color: oklch(33.5% 0.157 290.4);
Tailwind
colors: {
  custom: {
    50: '#795aa5',
    500: '#3b197f',
    950: '#000000',
  },
}
SCSS
$custom: #3b197f;
$custom-light: #795aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3b197f",
  "rgb": {
    "r": 59,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 260,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33456,
    "c": 0.1569,
    "h": 290.4
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#3B197F
secondary
#8DB341
accent
#EA3EB1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B197F

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

Preview Lab → · Contrast checker → · Palette generator →

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