#3A199B#3A199B

#3A199B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.189 H 283.3°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#3A199B
RGBrgb(58, 25, 155)
HSLhsl(255, 72%, 35%)
HSVhsv(255, 84%, 61%)
CMYKcmyk(62.6%, 83.9%, 0%, 39.2%)
CIE-LABlab(23.54, 48.75, -63.89)
CIE-LCHlch(23.54, 80.36, 307.35°)
OKLaboklab(36.32% 0.0435 -0.1842)
OKLCHoklch(36.32% 0.189 283.3)
XYZxyz(8.0071, 3.9608, 31.3466)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A199B #7A9B19
analogous
#19399B #3A199B #7B199B
triadic
#3A199B #9B3A19 #199B3A
tetradic
#3A199B #9B1939 #7A9B19 #199B7B
square
#3A199B #9B1939 #7A9B19 #199B7B
split-complementary
#3A199B #9B7B19 #399B19
monochromatic
#130832 #261166 #3A199B #4E22D0 #724CE2

Accessibility & contrast

On white

11.72
#3A199B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3A199B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A199B
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A199B#FFFFFF#000000##FFFFFF
##3A199B1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a199b;
/* rgb */ color: rgb(58, 25, 155);
/* oklch */ color: oklch(36.3% 0.189 283.3);
Tailwind
colors: {
  custom: {
    50: '#7e5cba',
    500: '#3a199b',
    950: '#000000',
  },
}
SCSS
$custom: #3a199b;
$custom-light: #7e5cba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a199b",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 155
  },
  "hsl": {
    "h": 255.231,
    "s": 72.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36315,
    "c": 0.18928,
    "h": 283.3
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#3A199B
secondary
#A6C44C
accent
#EF39C1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A199B

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

Preview Lab → · Contrast checker → · Palette generator →

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