#3A196B#3A196B

#3A196B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.133 H 296.2°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#3A196B
RGBrgb(58, 25, 107)
HSLhsl(264, 62%, 26%)
HSVhsv(264, 77%, 42%)
CMYKcmyk(45.8%, 76.6%, 0%, 58%)
CIE-LABlab(18.61, 34.93, -41.68)
CIE-LCHlch(18.61, 54.38, 309.97°)
OKLaboklab(31.4% 0.0587 -0.1193)
OKLCHoklch(31.4% 0.133 296.2)
XYZxyz(4.7457, 2.6562, 14.1697)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A196B #4A6B19
analogous
#19216B #3A196B #63196B
triadic
#3A196B #6B3A19 #196B3A
tetradic
#3A196B #6B1921 #4A6B19 #196B63
square
#3A196B #6B1921 #4A6B19 #196B63
split-complementary
#3A196B #6B6319 #216B19
monochromatic
#0D0619 #1F0D39 #3A196B #55259D #7030CE

Accessibility & contrast

On white

13.71
#3A196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3A196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A196B
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A196B#FFFFFF#000000##FFFFFF
##3A196B1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#2D2E40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a196b;
/* rgb */ color: rgb(58, 25, 107);
/* oklch */ color: oklch(31.4% 0.133 296.2);
Tailwind
colors: {
  custom: {
    50: '#765996',
    500: '#3a196b',
    950: '#000000',
  },
}
SCSS
$custom: #3a196b;
$custom-light: #765996;
$custom-dark: #000000;
JSON
{
  "hex": "#3a196b",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 264.146,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31397,
    "c": 0.13291,
    "h": 296.2
  },
  "luminance": 0.02656
}

Semantic roles & 50–950 ramp

primary
#3A196B
secondary
#79A13F
accent
#E543A4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3A196B

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

Preview Lab → · Contrast checker → · Palette generator →

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