#3A198E#3A198E

#3A198E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.174 H 286.0°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#3A198E
RGBrgb(58, 25, 142)
HSLhsl(257, 70%, 33%)
HSVhsv(257, 82%, 56%)
CMYKcmyk(59.2%, 82.4%, 0%, 44.3%)
CIE-LABlab(22.11, 45.03, -58.21)
CIE-LCHlch(22.11, 73.60, 307.73°)
OKLaboklab(34.91% 0.048 -0.1677)
OKLCHoklch(34.91% 0.174 286)
XYZxyz(6.9736, 3.5474, 25.9032)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A198E #6D8E19
analogous
#19328E #3A198E #74198E
triadic
#3A198E #8E3A19 #198E3A
tetradic
#3A198E #8E1932 #6D8E19 #198E74
square
#3A198E #8E1932 #6D8E19 #198E74
split-complementary
#3A198E #8E7419 #328E19
monochromatic
#0F0726 #25105A #3A198E #4F22C2 #6F43DE

Accessibility & contrast

On white

12.28
#3A198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3A198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A198E
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A198E#FFFFFF#000000##FFFFFF
##3A198E1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#0D3C54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a198e;
/* rgb */ color: rgb(58, 25, 142);
/* oklch */ color: oklch(34.9% 0.174 286.0);
Tailwind
colors: {
  custom: {
    50: '#7b5bb0',
    500: '#3a198e',
    950: '#000000',
  },
}
SCSS
$custom: #3a198e;
$custom-light: #7b5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a198e",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 256.923,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34908,
    "c": 0.17442,
    "h": 286
  },
  "luminance": 0.03548
}

Semantic roles & 50–950 ramp

primary
#3A198E
secondary
#9CBF44
accent
#ED3BBB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #3A198E

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

Preview Lab → · Contrast checker → · Palette generator →

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