#3A199E#3A199E

#3A199E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.193 H 282.7°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#3A199E
RGBrgb(58, 25, 158)
HSLhsl(255, 73%, 36%)
HSVhsv(255, 84%, 62%)
CMYKcmyk(63.3%, 84.2%, 0%, 38%)
CIE-LABlab(23.88, 49.60, -65.17)
CIE-LCHlch(23.88, 81.90, 307.28°)
OKLaboklab(36.65% 0.0424 -0.1879)
OKLCHoklch(36.65% 0.193 282.7)
XYZxyz(8.2622, 4.0628, 32.6899)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A199E #7D9E19
analogous
#193A9E #3A199E #7C199E
triadic
#3A199E #9E3A19 #199E3A
tetradic
#3A199E #9E193A #7D9E19 #199E7C
square
#3A199E #9E193A #7D9E19 #199E7C
split-complementary
#3A199E #9E7C19 #3A9E19
monochromatic
#130834 #271169 #3A199E #4D21D3 #734EE3

Accessibility & contrast

On white

11.59
#3A199E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3A199E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A199E
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A199E#FFFFFF#000000##FFFFFF
##3A199E1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a199e;
/* rgb */ color: rgb(58, 25, 158);
/* oklch */ color: oklch(36.6% 0.193 282.7);
Tailwind
colors: {
  custom: {
    50: '#7e5cbc',
    500: '#3a199e',
    950: '#000000',
  },
}
SCSS
$custom: #3a199e;
$custom-light: #7e5cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a199e",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 158
  },
  "hsl": {
    "h": 254.887,
    "s": 72.678,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36645,
    "c": 0.19267,
    "h": 282.7
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#3A199E
secondary
#A8C54E
accent
#EF38C2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A199E

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

Preview Lab → · Contrast checker → · Palette generator →

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