#3A199D#3A199D

#3A199D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.192 H 282.9°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#3A199D
RGBrgb(58, 25, 157)
HSLhsl(255, 73%, 36%)
HSVhsv(255, 84%, 62%)
CMYKcmyk(63.1%, 84.1%, 0%, 38.4%)
CIE-LABlab(23.77, 49.32, -64.74)
CIE-LCHlch(23.77, 81.39, 307.30°)
OKLaboklab(36.54% 0.0428 -0.1867)
OKLCHoklch(36.54% 0.192 282.9)
XYZxyz(8.1765, 4.0285, 32.2385)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A199D #7C9D19
analogous
#193A9D #3A199D #7C199D
triadic
#3A199D #9D3A19 #199D3A
tetradic
#3A199D #9D193A #7C9D19 #199D7C
square
#3A199D #9D193A #7C9D19 #199D7C
split-complementary
#3A199D #9D7C19 #3A9D19
monochromatic
#130833 #261168 #3A199D #4E21D2 #734EE3

Accessibility & contrast

On white

11.63
#3A199D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A199D
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A199D#FFFFFF#000000##FFFFFF
##3A199D1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA1
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a199d;
/* rgb */ color: rgb(58, 25, 157);
/* oklch */ color: oklch(36.5% 0.192 282.9);
Tailwind
colors: {
  custom: {
    50: '#7e5cbb',
    500: '#3a199d',
    950: '#000000',
  },
}
SCSS
$custom: #3a199d;
$custom-light: #7e5cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a199d",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 157
  },
  "hsl": {
    "h": 255,
    "s": 72.527,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36535,
    "c": 0.19154,
    "h": 282.9
  },
  "luminance": 0.04029
}

Semantic roles & 50–950 ramp

primary
#3A199D
secondary
#A7C54D
accent
#EF39C2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A199D

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

Preview Lab → · Contrast checker → · Palette generator →

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