#3A1990#3A1990

#3A1990 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.177 H 285.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#3A1990
RGBrgb(58, 25, 144)
HSLhsl(257, 70%, 33%)
HSVhsv(257, 83%, 56%)
CMYKcmyk(59.7%, 82.6%, 0%, 43.5%)
CIE-LABlab(22.33, 45.61, -59.10)
CIE-LCHlch(22.33, 74.65, 307.66°)
OKLaboklab(35.12% 0.0473 -0.1703)
OKLCHoklch(35.12% 0.177 285.5)
XYZxyz(7.1251, 3.6080, 26.7011)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1990 #6F9019
analogous
#193390 #3A1990 #751990
triadic
#3A1990 #903A19 #19903A
tetradic
#3A1990 #901933 #6F9019 #199075
square
#3A1990 #901933 #6F9019 #199075
split-complementary
#3A1990 #907519 #339019
monochromatic
#100728 #25105C #3A1990 #4F22C4 #6F45DF

Accessibility & contrast

On white

12.20
#3A1990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3A1990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1990
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1990#FFFFFF#000000##FFFFFF
##3A19901.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#083D55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a1990;
/* rgb */ color: rgb(58, 25, 144);
/* oklch */ color: oklch(35.1% 0.177 285.5);
Tailwind
colors: {
  custom: {
    50: '#7c5bb2',
    500: '#3a1990',
    950: '#000000',
  },
}
SCSS
$custom: #3a1990;
$custom-light: #7c5bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1990",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 256.639,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35122,
    "c": 0.17673,
    "h": 285.5
  },
  "luminance": 0.03608
}

Semantic roles & 50–950 ramp

primary
#3A1990
secondary
#9EC045
accent
#ED3BBC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1990

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

Preview Lab → · Contrast checker → · Palette generator →

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