#3A147E#3A147E

#3A147E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.160 H 290.8°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#3A147E
RGBrgb(58, 20, 126)
HSLhsl(262, 73%, 29%)
HSVhsv(262, 84%, 49%)
CMYKcmyk(54%, 84.1%, 0%, 50.6%)
CIE-LABlab(19.66, 42.67, -52.19)
CIE-LCHlch(19.66, 67.41, 309.27°)
OKLaboklab(32.7% 0.057 -0.15)
OKLCHoklch(32.7% 0.16 290.8)
XYZxyz(5.7599, 2.9060, 19.9920)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A147E #587E14
analogous
#14237E #3A147E #6F147E
triadic
#3A147E #7E3A14 #147E3A
tetradic
#3A147E #7E1423 #587E14 #147E6F
square
#3A147E #7E1423 #587E14 #147E6F
split-complementary
#3A147E #7E6F14 #237E14
monochromatic
#0C041A #220C49 #3A147E #521CB3 #6D2EDE

Accessibility & contrast

On white

13.28
#3A147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3A147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A147E
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A147E#FFFFFF#000000##FFFFFF
##3A147E1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#21344A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a147e;
/* rgb */ color: rgb(58, 20, 126);
/* oklch */ color: oklch(32.7% 0.160 290.8);
Tailwind
colors: {
  custom: {
    50: '#7958a4',
    500: '#3a147e',
    950: '#000000',
  },
}
SCSS
$custom: #3a147e;
$custom-light: #7958a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a147e",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 261.509,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32704,
    "c": 0.16047,
    "h": 290.8
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#3A147E
secondary
#88B33A
accent
#EF38AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3A147E

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

Preview Lab → · Contrast checker → · Palette generator →

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