#3A147F#3A147F

#3A147F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.162 H 290.5°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#3A147F
RGBrgb(58, 20, 127)
HSLhsl(261, 73%, 29%)
HSVhsv(261, 84%, 50%)
CMYKcmyk(54.3%, 84.3%, 0%, 50.2%)
CIE-LABlab(19.77, 42.95, -52.65)
CIE-LCHlch(19.77, 67.94, 309.21°)
OKLaboklab(32.81% 0.0566 -0.1514)
OKLCHoklch(32.81% 0.162 290.5)
XYZxyz(5.8247, 2.9319, 20.3336)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A147F #597F14
analogous
#14247F #3A147F #70147F
triadic
#3A147F #7F3A14 #147F3A
tetradic
#3A147F #7F1424 #597F14 #147F70
square
#3A147F #7F1424 #597F14 #147F70
split-complementary
#3A147F #7F7014 #247F14
monochromatic
#0C041A #220C4A #3A147F #521CB4 #6D2FDE

Accessibility & contrast

On white

13.24
#3A147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3A147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A147F
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A147F#FFFFFF#000000##FFFFFF
##3A147F1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#20344B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a147f;
/* rgb */ color: rgb(58, 20, 127);
/* oklch */ color: oklch(32.8% 0.162 290.5);
Tailwind
colors: {
  custom: {
    50: '#7958a5',
    500: '#3a147f',
    950: '#000000',
  },
}
SCSS
$custom: #3a147f;
$custom-light: #7958a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a147f",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 261.308,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32809,
    "c": 0.16161,
    "h": 290.5
  },
  "luminance": 0.02932
}

Semantic roles & 50–950 ramp

primary
#3A147F
secondary
#89B43B
accent
#EF38AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3A147F

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

Preview Lab → · Contrast checker → · Palette generator →

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