#3A196E#3A196E

#3A196E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.137 H 295.1°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#3A196E
RGBrgb(58, 25, 110)
HSLhsl(263, 63%, 26%)
HSVhsv(263, 77%, 43%)
CMYKcmyk(47.3%, 77.3%, 0%, 56.9%)
CIE-LABlab(18.89, 35.79, -43.18)
CIE-LCHlch(18.89, 56.08, 309.66°)
OKLaboklab(31.68% 0.0579 -0.1237)
OKLCHoklch(31.68% 0.137 295.1)
XYZxyz(4.9063, 2.7205, 15.0154)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A196E #4D6E19
analogous
#19236E #3A196E #65196E
triadic
#3A196E #6E3A19 #196E3A
tetradic
#3A196E #6E1923 #4D6E19 #196E65
square
#3A196E #6E1923 #4D6E19 #196E65
split-complementary
#3A196E #6E6519 #236E19
monochromatic
#0D0619 #200E3C #3A196E #5424A0 #6F31D0

Accessibility & contrast

On white

13.60
#3A196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A196E
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A196E#FFFFFF#000000##FFFFFF
##3A196E1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#2B2F42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a196e;
/* rgb */ color: rgb(58, 25, 110);
/* oklch */ color: oklch(31.7% 0.137 295.1);
Tailwind
colors: {
  custom: {
    50: '#765998',
    500: '#3a196e',
    950: '#000000',
  },
}
SCSS
$custom: #3a196e;
$custom-light: #765998;
$custom-dark: #000000;
JSON
{
  "hex": "#3a196e",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 263.294,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31678,
    "c": 0.13657,
    "h": 295.1
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#3A196E
secondary
#7DA33F
accent
#E642A6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A196E

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

Preview Lab → · Contrast checker → · Palette generator →

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