#3A149F#3A149F

#3A149F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.3% C 0.197 H 283.0°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#3A149F
RGBrgb(58, 20, 159)
HSLhsl(256, 78%, 35%)
HSVhsv(256, 87%, 62%)
CMYKcmyk(63.5%, 87.4%, 0%, 37.6%)
CIE-LABlab(23.35, 51.79, -66.66)
CIE-LCHlch(23.35, 84.41, 307.85°)
OKLaboklab(36.32% 0.0443 -0.1922)
OKLCHoklch(36.32% 0.197 283)
XYZxyz(8.2511, 3.9025, 33.1126)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A149F #799F14
analogous
#14339F #3A149F #80149F
triadic
#3A149F #9F3A14 #149F3A
tetradic
#3A149F #9F1433 #799F14 #149F80
square
#3A149F #9F1433 #799F14 #149F80
split-complementary
#3A149F #9F8014 #339F14
monochromatic
#120632 #260D69 #3A149F #4E1BD5 #7246E8

Accessibility & contrast

On white

11.79
#3A149F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3A149F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A149F
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A149F#FFFFFF#000000##FFFFFF
##3A149F1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00425D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a149f;
/* rgb */ color: rgb(58, 20, 159);
/* oklch */ color: oklch(36.3% 0.197 283.0);
Tailwind
colors: {
  custom: {
    50: '#7f5abd',
    500: '#3a149f',
    950: '#000000',
  },
}
SCSS
$custom: #3a149f;
$custom-light: #7f5abd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a149f",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 159
  },
  "hsl": {
    "h": 256.403,
    "s": 77.654,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36315,
    "c": 0.19724,
    "h": 283
  },
  "luminance": 0.03903
}

Semantic roles & 50–950 ramp

primary
#3A149F
secondary
#A5C846
accent
#F434C0
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A149F

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

Preview Lab → · Contrast checker → · Palette generator →

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