#3A196D#3A196D

#3A196D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.135 H 295.5°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#3A196D
RGBrgb(58, 25, 109)
HSLhsl(264, 63%, 26%)
HSVhsv(264, 77%, 43%)
CMYKcmyk(46.8%, 77.1%, 0%, 57.3%)
CIE-LABlab(18.79, 35.50, -42.68)
CIE-LCHlch(18.79, 55.52, 309.76°)
OKLaboklab(31.58% 0.0582 -0.1222)
OKLCHoklch(31.58% 0.135 295.5)
XYZxyz(4.8521, 2.6988, 14.7303)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A196D #4C6D19
analogous
#19226D #3A196D #64196D
triadic
#3A196D #6D3A19 #196D3A
tetradic
#3A196D #6D1922 #4C6D19 #196D64
square
#3A196D #6D1922 #4C6D19 #196D64
split-complementary
#3A196D #6D6419 #226D19
monochromatic
#0D0619 #200E3B #3A196D #54249F #6F31D0

Accessibility & contrast

On white

13.64
#3A196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3A196D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A196D
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A196D#FFFFFF#000000##FFFFFF
##3A196D1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#2C2F41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a196d;
/* rgb */ color: rgb(58, 25, 109);
/* oklch */ color: oklch(31.6% 0.135 295.5);
Tailwind
colors: {
  custom: {
    50: '#765998',
    500: '#3a196d',
    950: '#000000',
  },
}
SCSS
$custom: #3a196d;
$custom-light: #765998;
$custom-dark: #000000;
JSON
{
  "hex": "#3a196d",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 263.571,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31584,
    "c": 0.13536,
    "h": 295.5
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#3A196D
secondary
#7CA23F
accent
#E642A5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A196D

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

Preview Lab → · Contrast checker → · Palette generator →

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