#3B197B#3B197B

#3B197B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.152 H 291.5°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#3B197B
RGBrgb(59, 25, 123)
HSLhsl(261, 66%, 29%)
HSVhsv(261, 80%, 48%)
CMYKcmyk(52%, 79.7%, 0%, 51.8%)
CIE-LABlab(20.26, 39.70, -49.29)
CIE-LCHlch(20.26, 63.28, 308.85°)
OKLaboklab(33.06% 0.0559 -0.1415)
OKLCHoklch(33.06% 0.152 291.5)
XYZxyz(5.7254, 3.0549, 19.0230)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B197B #597B19
analogous
#19287B #3B197B #6C197B
triadic
#3B197B #7B3B19 #197B3B
tetradic
#3B197B #7B1928 #597B19 #197B6C
square
#3B197B #7B1928 #597B19 #197B6C
split-complementary
#3B197B #7B6C19 #287B19
monochromatic
#0C0519 #230F48 #3B197B #5323AE #6F38D7

Accessibility & contrast

On white

13.04
#3B197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3B197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B197B
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B197B#FFFFFF#000000##FFFFFF
##3B197B1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#253449
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3b197b;
/* rgb */ color: rgb(59, 25, 123);
/* oklch */ color: oklch(33.1% 0.152 291.5);
Tailwind
colors: {
  custom: {
    50: '#795aa2',
    500: '#3b197b',
    950: '#000000',
  },
}
SCSS
$custom: #3b197b;
$custom-light: #795aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3b197b",
  "rgb": {
    "r": 59,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 260.816,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33055,
    "c": 0.15218,
    "h": 291.5
  },
  "luminance": 0.03055
}

Semantic roles & 50–950 ramp

primary
#3B197B
secondary
#89AF40
accent
#E93FAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B197B

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

Preview Lab → · Contrast checker → · Palette generator →

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