#3A196C#3A196C

#3A196C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.134 H 295.8°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#3A196C
RGBrgb(58, 25, 108)
HSLhsl(264, 62%, 26%)
HSVhsv(264, 77%, 42%)
CMYKcmyk(46.3%, 76.9%, 0%, 57.6%)
CIE-LABlab(18.70, 35.22, -42.18)
CIE-LCHlch(18.70, 54.95, 309.86°)
OKLaboklab(31.49% 0.0584 -0.1207)
OKLCHoklch(31.49% 0.134 295.8)
XYZxyz(4.7986, 2.6774, 14.4484)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A196C #4B6C19
analogous
#19226C #3A196C #63196C
triadic
#3A196C #6C3A19 #196C3A
tetradic
#3A196C #6C1922 #4B6C19 #196C63
square
#3A196C #6C1922 #4B6C19 #196C63
split-complementary
#3A196C #6C6319 #226C19
monochromatic
#0D0619 #1F0D3A #3A196C #55259E #6F30CF

Accessibility & contrast

On white

13.68
#3A196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A196C
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A196C#FFFFFF#000000##FFFFFF
##3A196C1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#2C2E41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a196c;
/* rgb */ color: rgb(58, 25, 108);
/* oklch */ color: oklch(31.5% 0.134 295.8);
Tailwind
colors: {
  custom: {
    50: '#765997',
    500: '#3a196c',
    950: '#000000',
  },
}
SCSS
$custom: #3a196c;
$custom-light: #765997;
$custom-dark: #000000;
JSON
{
  "hex": "#3a196c",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 263.855,
    "s": 62.406,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3149,
    "c": 0.13414,
    "h": 295.8
  },
  "luminance": 0.02678
}

Semantic roles & 50–950 ramp

primary
#3A196C
secondary
#7AA13F
accent
#E542A5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3A196C

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

Preview Lab → · Contrast checker → · Palette generator →

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