#3A196F#3A196F

#3A196F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.138 H 294.7°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#3A196F
RGBrgb(58, 25, 111)
HSLhsl(263, 63%, 27%)
HSVhsv(263, 77%, 44%)
CMYKcmyk(47.7%, 77.5%, 0%, 56.5%)
CIE-LABlab(18.98, 36.08, -43.67)
CIE-LCHlch(18.98, 56.65, 309.56°)
OKLaboklab(31.77% 0.0577 -0.1251)
OKLCHoklch(31.77% 0.138 294.7)
XYZxyz(4.9610, 2.7424, 15.3038)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A196F #4E6F19
analogous
#19236F #3A196F #65196F
triadic
#3A196F #6F3A19 #196F3A
tetradic
#3A196F #6F1923 #4E6F19 #196F65
square
#3A196F #6F1923 #4E6F19 #196F65
split-complementary
#3A196F #6F6519 #236F19
monochromatic
#0D0619 #200E3D #3A196F #5424A1 #6F32D1

Accessibility & contrast

On white

13.56
#3A196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3A196F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A196F
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A196F#FFFFFF#000000##FFFFFF
##3A196F1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#2B3042
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a196f;
/* rgb */ color: rgb(58, 25, 111);
/* oklch */ color: oklch(31.8% 0.138 294.7);
Tailwind
colors: {
  custom: {
    50: '#765999',
    500: '#3a196f',
    950: '#000000',
  },
}
SCSS
$custom: #3a196f;
$custom-light: #765999;
$custom-dark: #000000;
JSON
{
  "hex": "#3a196f",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 263.023,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31773,
    "c": 0.13778,
    "h": 294.7
  },
  "luminance": 0.02742
}

Semantic roles & 50–950 ramp

primary
#3A196F
secondary
#7EA43F
accent
#E642A7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A196F

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

Preview Lab → · Contrast checker → · Palette generator →

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