#3B198E#3B198E

#3B198E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.174 H 286.5°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#3B198E
RGBrgb(59, 25, 142)
HSLhsl(257, 70%, 33%)
HSVhsv(257, 82%, 56%)
CMYKcmyk(58.5%, 82.4%, 0%, 44.3%)
CIE-LABlab(22.22, 45.15, -58.03)
CIE-LCHlch(22.22, 73.52, 307.89°)
OKLaboklab(35.01% 0.0496 -0.1671)
OKLCHoklch(35.01% 0.174 286.5)
XYZxyz(7.0323, 3.5777, 25.9059)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B198E #6C8E19
analogous
#19318E #3B198E #75198E
triadic
#3B198E #8E3B19 #198E3B
tetradic
#3B198E #8E1931 #6C8E19 #198E75
square
#3B198E #8E1931 #6C8E19 #198E75
split-complementary
#3B198E #8E7519 #318E19
monochromatic
#100726 #25105A #3B198E #5122C2 #7043DE

Accessibility & contrast

On white

12.24
#3B198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3B198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B198E
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B198E#FFFFFF#000000##FFFFFF
##3B198E1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#113C54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3b198e;
/* rgb */ color: rgb(59, 25, 142);
/* oklch */ color: oklch(35.0% 0.174 286.5);
Tailwind
colors: {
  custom: {
    50: '#7c5bb0',
    500: '#3b198e',
    950: '#000000',
  },
}
SCSS
$custom: #3b198e;
$custom-light: #7c5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b198e",
  "rgb": {
    "r": 59,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 257.436,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35009,
    "c": 0.17434,
    "h": 286.5
  },
  "luminance": 0.03578
}

Semantic roles & 50–950 ramp

primary
#3B198E
secondary
#9BBF44
accent
#ED3BB9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B198E

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

Preview Lab → · Contrast checker → · Palette generator →

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