#3A1390#3A1390

#3A1390 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.181 H 286.2°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#3A1390
RGBrgb(58, 19, 144)
HSLhsl(259, 77%, 32%)
HSVhsv(259, 87%, 56%)
CMYKcmyk(59.7%, 86.8%, 0%, 43.5%)
CIE-LABlab(21.50, 48.05, -60.47)
CIE-LCHlch(21.50, 77.23, 308.47°)
OKLaboklab(34.55% 0.0506 -0.1742)
OKLCHoklch(34.55% 0.181 286.2)
XYZxyz(7.0103, 3.3785, 26.6629)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1390 #699013
analogous
#132B90 #3A1390 #791390
triadic
#3A1390 #903A13 #13903A
tetradic
#3A1390 #90132B #699013 #139079
square
#3A1390 #90132B #699013 #139079
split-complementary
#3A1390 #907913 #2B9013
monochromatic
#0E0524 #240C5A #3A1390 #501AC6 #6E39E5

Accessibility & contrast

On white

12.53
#3A1390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3A1390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1390
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1390#FFFFFF#000000##FFFFFF
##3A13901.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#093B54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a1390;
/* rgb */ color: rgb(58, 19, 144);
/* oklch */ color: oklch(34.6% 0.181 286.2);
Tailwind
colors: {
  custom: {
    50: '#7c59b2',
    500: '#3a1390',
    950: '#000000',
  },
}
SCSS
$custom: #3a1390;
$custom-light: #7c59b2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1390",
  "rgb": {
    "r": 58,
    "g": 19,
    "b": 144
  },
  "hsl": {
    "h": 258.72,
    "s": 76.687,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34551,
    "c": 0.1814,
    "h": 286.2
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#3A1390
secondary
#99C43B
accent
#F335B8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1390

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

Preview Lab → · Contrast checker → · Palette generator →

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