#3A2090#3A2090

#3A2090 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.170 H 284.5°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#3A2090
RGBrgb(58, 32, 144)
HSLhsl(254, 64%, 35%)
HSVhsv(254, 78%, 56%)
CMYKcmyk(59.7%, 77.8%, 0%, 43.5%)
CIE-LABlab(23.49, 42.26, -57.19)
CIE-LCHlch(23.49, 71.10, 306.46°)
OKLaboklab(35.93% 0.0427 -0.1648)
OKLCHoklch(35.93% 0.17 284.5)
XYZxyz(7.2939, 3.9457, 26.7574)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2090 #769020
analogous
#203E90 #3A2090 #722090
triadic
#3A2090 #903A20 #20903A
tetradic
#3A2090 #90203E #769020 #209072
square
#3A2090 #90203E #769020 #209072
split-complementary
#3A2090 #907220 #3E9020
monochromatic
#120A2C #26155E #3A2090 #4E2BC2 #7152D9

Accessibility & contrast

On white

11.74
#3A2090 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3A2090 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2090
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2090#FFFFFF#000000##FFFFFF
##3A20901.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#00348E
Tritanopia (blue-blind)
#074057
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a2090;
/* rgb */ color: rgb(58, 32, 144);
/* oklch */ color: oklch(35.9% 0.170 284.5);
Tailwind
colors: {
  custom: {
    50: '#7b5fb2',
    500: '#3a2090',
    950: '#000000',
  },
}
SCSS
$custom: #3a2090;
$custom-light: #7b5fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2090",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 144
  },
  "hsl": {
    "h": 253.929,
    "s": 63.636,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3593,
    "c": 0.17021,
    "h": 284.5
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#3A2090
secondary
#A3BC50
accent
#E741C0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A2090

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

Preview Lab → · Contrast checker → · Palette generator →

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